Added command that preserves the environment so I don't need to change

timeshift permissions.
This commit is contained in:
RealStickman 2020-09-30 18:17:22 +02:00
parent 243d91f8e6
commit 80558a3eee

View File

@ -13,8 +13,8 @@ restic -r b2:arco-pc-backup:/home/marc restore --target "/home/marc/" <snapshot>
#arco-pc-backup timeshift:
restic -r b2:arco-pc-backup:/mnt/harddrive/timeshift/snapshots init
sudo chmod -Rv 777 /mnt/1d90c4d5-21d2-4455-bb4a-814de8496744/timeshift/
restic -r b2:arco-pc-backup:/mnt/harddrive/timeshift/snapshots backup --verbose "/mnt/1d90c4d5-21d2-4455-bb4a-814de8496744/timeshift/snapshots/"
#sudo chmod -Rv 777 /mnt/1d90c4d5-21d2-4455-bb4a-814de8496744/timeshift/
sudo -E restic -r b2:arco-pc-backup:/mnt/harddrive/timeshift/snapshots backup --verbose "/mnt/1d90c4d5-21d2-4455-bb4a-814de8496744/timeshift/snapshots/"
restic -r b2:arco-pc-backup:/mnt/harddrive/timeshift/snapshots snapshots
restic -r b2:arco-pc-backup:/mnt/harddrive/timeshift/snapshots restore --target "/mnt/1d90c4d5-21d2-4455-bb4a-814de8496744/timeshift/snapshots/" <snapshot>
@ -41,4 +41,4 @@ restic -r b2:realstickman-xyz-backup:root restore --target "/root" <snapshot>
restic -r b2:realstickman-xyz-backup:etc init
restic -r b2:realstickman-xyz-backup:etc backup --verbose "/etc"
restic -r b2:realstickman-xyz-backup:etc snapshots
restic -r b2:realstickman-xyz-backup:etc restore --target "/etc" <snapshot>
restic -r b2:realstickman-xyz-backup:etc restore --target "/etc" <snapshot>