diff --git a/arch-config/Dokumente/restic.md b/arch-config/Dokumente/restic.md index c26ab3de..9d2c3ce0 100644 --- a/arch-config/Dokumente/restic.md +++ b/arch-config/Dokumente/restic.md @@ -2,44 +2,84 @@ ## B2 backups +```bash export B2_ACCOUNT_ID= +``` +```bash export B2_ACCOUNT_KEY= +``` -### arco-pc-backup home: +### arco-pc-backup home + +```bash restic -r b2:arco-pc-backup:/home/marc init +``` +```bash restic -r b2:arco-pc-backup:/home/marc backup --verbose "/home/marc/" --exclude-file=/home/marc/Dokumente/home-exclude.txt +``` +```bash restic -r b2:arco-pc-backup:/home/marc snapshots +``` +```bash restic -r b2:arco-pc-backup:/home/marc restore --target "/home/marc/" +``` -#arco-pc-backup timeshift: +### arco-pc-backup timeshift + +```bash restic -r b2:arco-pc-backup:/mnt/harddrive/timeshift/snapshots init -#sudo chmod -Rv 777 /mnt/1d90c4d5-21d2-4455-bb4a-814de8496744/timeshift/ +``` +```bash sudo -E restic -r b2:arco-pc-backup:/mnt/harddrive/timeshift/snapshots backup --verbose "/mnt/1d90c4d5-21d2-4455-bb4a-814de8496744/timeshift/snapshots/" +``` +```bash restic -r b2:arco-pc-backup:/mnt/harddrive/timeshift/snapshots snapshots +``` +```bash restic -r b2:arco-pc-backup:/mnt/harddrive/timeshift/snapshots restore --target "/mnt/1d90c4d5-21d2-4455-bb4a-814de8496744/timeshift/snapshots/" +``` -#arco-pc-backup consoles: +### arco-pc-backup consoles + +```bash restic -r b2:arco-pc-backup:/mnt/harddrive/Consoles init +``` +```bash restic -r b2:arco-pc-backup:/mnt/harddrive/Consoles backup --verbose "/mnt/1d90c4d5-21d2-4455-bb4a-814de8496744/Consoles" +``` +```bash restic -r b2:arco-pc-backup:/mnt/harddrive/Consoles snapshots +``` +```bash restic -r b2:arco-pc-backup:/mnt/harddrive/Consoles restore --target "/mnt/1d90c4d5-21d2-4455-bb4a-814de8496744/Consoles" +``` -#rpi3-backup -restic -r b2:rpi3-backup:timeshift/snapshots init -sudo chmod -Rv 777 /run/timeshift/backup/timeshift -restic -r b2:rpi3-backup:timeshift/snapshots backup --verbose "/run/timeshift/backup/timeshift/snapshots" -restic -r b2:rpi3-backup:timeshift/snapshots snapshots -restic -r b2:rpi3-backup:timeshift/snapshots restore --target "/run/timeshift/backup/timeshift/snapshots" +### realstickman-xyz-backup root -#realstickman-xyz-backup root +```bash restic -r b2:realstickman-xyz-backup:root init +``` +```bash restic -r b2:realstickman-xyz-backup:root backup --verbose "/root" +``` +```bash restic -r b2:realstickman-xyz-backup:root snapshots +``` +```bash restic -r b2:realstickman-xyz-backup:root restore --target "/root" +``` -#realstickman-xyz-backup etc +### realstickman-xyz-backup etc + +```bash restic -r b2:realstickman-xyz-backup:etc init +``` +```bash restic -r b2:realstickman-xyz-backup:etc backup --verbose "/etc" +``` +```bash restic -r b2:realstickman-xyz-backup:etc snapshots +``` +```bash restic -r b2:realstickman-xyz-backup:etc restore --target "/etc" - +```