borg transcript

#371
Raw
Created
June 25, 2021, 3:56 a.m.
Expires
Never
Size
6.9 KB
Hits
182
Syntax
None
Private
✗ No
Just a terminal output describing my borg backup setup.

stargate ~ # cat $(which backup-snowcrash)
#!/bin/sh
if [ -e /root/inhibit-backup ]; then
        f=
        [ -t 2 ] && f='-s'
        logger $f "$0: /root/inhibit-backup exists, skipping backup"
        exit
fi
/usr/bin/borgmatic -c /etc/borgmatic/snowcrash.yaml "$@"
stargate ~ # cat /etc/borgmatic/snowcrash.yaml
location:
  source_directories:
    - /home
    - /etc
    - /var/db/pkg
    - /var/log
    - /var/spool
    - /var/lib/portage
    - /var/lib/syncthing
    - /root
  exclude_patterns:
    - /home/recovery
  repositories:
    - borg-snowcrash@silo.lan:repository.borg
    - v10087wc@v10087wc.repo.borgbase.com:repo
  one_file_system: true
retention:
  keep_daily: 7
  keep_weekly: 4
  keep_monthly: 6
consistency:
  checks:
    - repository
    - archives
storage:
  # Custom SSH Key in the config tree
  ssh_command: ssh -i /etc/borgmatic/keys/snowcrash/ssh
  # Password is in the repokey file
  encryption_passcommand: cat /etc/borgmatic/keys/snowcrash/repokey
stargate ~ # backup-snowcrash info
borg-snowcrash@silo.lan:repository.borg: Displaying summary info for archives
Repository ID: 9561d14a49296c5224a27624a81ba6d8c9dd25ddec6137cd5fbdd0ed3b32dc94
Location: ssh://borg-snowcrash@silo.lan/./repository.borg
Encrypted: Yes (repokey)
Cache: /root/.cache/borg/9561d14a49296c5224a27624a81ba6d8c9dd25ddec6137cd5fbdd0ed3b32dc94
Security dir: /root/.config/borg/security/9561d14a49296c5224a27624a81ba6d8c9dd25ddec6137cd5fbdd0ed3b32dc94
------------------------------------------------------------------------------
                       Original size      Compressed size    Deduplicated size
All archives:                2.67 TB              1.77 TB            250.54 GB
                       Unique chunks         Total chunks
Chunk index:                 1334327             21394400
v10087wc@v10087wc.repo.borgbase.com:repo: Displaying summary info for archives
Repository ID: 07b8813fec72e4599b09fbdd8fe35affa51863d64c28986ee08629cd0df2d803
Location: ssh://v10087wc@v10087wc.repo.borgbase.com/./repo
Encrypted: Yes (repokey)
Cache: /root/.cache/borg/07b8813fec72e4599b09fbdd8fe35affa51863d64c28986ee08629cd0df2d803
Security dir: /root/.config/borg/security/07b8813fec72e4599b09fbdd8fe35affa51863d64c28986ee08629cd0df2d803
------------------------------------------------------------------------------
                       Original size      Compressed size    Deduplicated size
All archives:                2.46 TB              1.63 TB            191.31 GB
                       Unique chunks         Total chunks
Chunk index:                 1139050             18308086
stargate ~ # backup-snowcrash list
borg-snowcrash@silo.lan:repository.borg: Listing archives
stargate-2020-11-30T00:29:36.632081  Mon, 2020-11-30 00:29:37 [12676cccd3d3fdde5d7fcf0cb84a8983d68ec3644cc849c82215612e0ced2ddc]
stargate-2020-12-31T00:47:25.454827  Thu, 2020-12-31 00:47:26 [102068e58a5fd400ef400e697ec417d04ff271b36255193f8e1d5021fa01dbda]
stargate-2021-01-31T00:46:40.996029  Sun, 2021-01-31 00:46:42 [27befb5737eef11d92f24fe3343efe2b65d06b96580e23d8355020ce01d81938]
stargate-2021-02-28T00:18:31.495615  Sun, 2021-02-28 00:18:32 [8d6ab99745c98a1d357ccd977accc2f69ccab84015060954fa9fd7188d5ca034]
stargate-2021-03-31T12:50:14.122318  Wed, 2021-03-31 12:50:15 [1429c8e2bd36ac53c66677538d2f7c06646d131716d4df017c98b5e07aaf31ac]
stargate-2021-04-30T09:16:11.701825  Fri, 2021-04-30 09:16:12 [391042f6e30f6785df5ac879d8ec036a2ced088ac1e87be097b441e8f44486a1]
stargate-2021-05-07T09:10:33.923704  Fri, 2021-05-07 09:10:34 [82e2dada7077a074cd7e688787263f3b3abaf111977925935cff126de5d73d59]
stargate-2021-05-16T19:46:02.003771  Sun, 2021-05-16 19:46:03 [c3b99131f5a3be3b44378e5b2dabd56fa28a3e59ba8e63b53a391d0da23b1a09]
stargate-2021-05-22T00:11:12.790505  Sat, 2021-05-22 00:11:13 [804e812832f8c55e12a58e0cbc8d148f6a027f62d73fc4218accfdbbc3a3a003]
stargate-2021-06-06T00:19:49.937128  Sun, 2021-06-06 00:19:50 [fad64152488418ccb0ee8d5ce1d6a2897d324af9b345d0266face2c18b7ab260]
stargate-2021-06-13T00:08:50.186350  Sun, 2021-06-13 00:08:51 [25154372d673795386047c63eba5aa1afee1f63ba3e4df58054e43d17bc5f633]
stargate-2021-06-14T09:43:53.053707  Mon, 2021-06-14 09:43:53 [f7f3a84c1f8197cda86c63f102512558574a3d579b6b9a7a6055fd2bf507e9c9]
stargate-2021-06-15T09:53:35.748214  Tue, 2021-06-15 09:53:36 [7d90bb4ca9ace49c61cf92480c90ed0b281028183b11e6aee027531aedb5ac7f]
stargate-2021-06-16T09:27:53.736157  Wed, 2021-06-16 09:27:54 [d0f8c4a7642b0b5ae4e708bbbac4ecc2e55bdf7c16b653b07303e3422dbc660d]
stargate-2021-06-17T12:49:55.590189  Thu, 2021-06-17 12:49:56 [d0b09d767d19e1f33b4b9cc7dd4a20f23531b9e6fe100d44286e09e7152f0e15]
stargate-2021-06-18T00:46:23.800597  Fri, 2021-06-18 00:46:24 [60f790dc01d91b8b47895d27655931ada3edc56ac0d780e312c6cf05048319ac]
stargate-2021-06-20T19:40:11.952872  Sun, 2021-06-20 19:40:12 [e7c99ef01c7a706c4258997f19d73b14cda5ffbdd19376ec19a9ae309845f542]
stargate-2021-06-24T10:45:29.876730  Thu, 2021-06-24 10:45:30 [62620e1ec1353a8357854e48b90ca6453427f299c3671eb038d528cd55946444]
v10087wc@v10087wc.repo.borgbase.com:repo: Listing archives
stargate-2021-03-31T13:29:59.727910  Wed, 2021-03-31 13:30:02 [ff12d979831a632b82dacfc055d5596527b3436f1efc1a417c688ae353aaa6b3]
stargate-2021-04-30T10:01:52.772999  Fri, 2021-04-30 10:01:54 [30c5660b18aeaae386b9c5fb8a24eb351e206a8888670ab988063acb5299760a]
stargate-2021-05-13T00:48:30.744407  Thu, 2021-05-13 00:48:32 [82461feeda36143791e0975e4872d8a4d1cf02b1a13953936fa8f966783faa0e]
stargate-2021-05-23T16:23:59.904469  Sun, 2021-05-23 16:24:01 [13df5cd9131fd7ef85c586b7068127ae63fbb9a8877715401481b29d54291ff5]
stargate-2021-05-30T21:24:17.103840  Sun, 2021-05-30 21:24:19 [31b4ad5f8dda03c0586d46563b354c16fe58007b1b6ed6a9f31530ca1c2b485e]
stargate-2021-05-31T00:45:22.739837  Mon, 2021-05-31 00:45:25 [1fd3f67db9299166ef175e3fe813733ee58931f16f2c8233714e70ffd67a2053]
stargate-2021-06-06T00:57:21.726136  Sun, 2021-06-06 00:57:23 [393c87eb916b3e810872bc2926d2d4fe636f8ebb8144ada27871125a8c230ccf]
stargate-2021-06-13T00:47:03.031453  Sun, 2021-06-13 00:47:05 [8eb3245a6b497f6523a9c4b7835a87ba8f0fc59ee15a16dea928871bcd94c122]
stargate-2021-06-14T10:28:40.443045  Mon, 2021-06-14 10:28:42 [982dab4f370f5bfc3a86c6eb6fc79df51834d35151401cff483dfa4cf91c6501]
stargate-2021-06-15T10:38:56.349259  Tue, 2021-06-15 10:38:58 [d0983fb94b38adceb0a54dbab31c5bcbb2693022bee262daac32773725e64142]
stargate-2021-06-16T10:12:35.766242  Wed, 2021-06-16 10:12:37 [c1fbbf60256e78042dd774eade6426dac08684333877e5705cba183c6723c63d]
stargate-2021-06-17T13:32:33.699339  Thu, 2021-06-17 13:32:35 [39e327dc4d85219fd353cc511d1e9037fcc150de93905b6eb3bf860e8b8083d1]
stargate-2021-06-18T01:26:23.312063  Fri, 2021-06-18 01:26:25 [0a8f523eeea054733fee5913d9e3848aad4373b1d74ec3da032fef0198625383]
stargate-2021-06-20T20:18:51.202639  Sun, 2021-06-20 20:18:53 [980bdbcb6dfbb2ff189b72e9e25951d4da8ee1ab35488f806fdf50783ff95b76]
stargate-2021-06-24T11:27:41.874394  Thu, 2021-06-24 11:27:44 [fa8ac3fdc4818a5f4553abf88e1288d7553a807d205ecd37c435a90baf100ba8]