From 4e54a0448e3e959bcc2bebda9e26b5ab6e3d1c5b Mon Sep 17 00:00:00 2001 From: RealStickman Date: Mon, 28 Dec 2020 19:42:20 +0100 Subject: [PATCH] Add backup for timeshift --- arch-config/Dokumente/restic.md | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/arch-config/Dokumente/restic.md b/arch-config/Dokumente/restic.md index 8a69cb0f..906c8528 100644 --- a/arch-config/Dokumente/restic.md +++ b/arch-config/Dokumente/restic.md @@ -2,12 +2,12 @@ ## Local backups -## arco-pc-backup home +### arco-pc-backup home +There is currently a problem in go that makes this command fail. Run the following command before retrying: `export GODEBUG=asyncpreemptoff=1` ``` restic init --repo /mnt/backups/arco-pc/home/marc ``` -There is currently a problem in go that makes this command fail. Run the following command before retrying: `export GODEBUG=asyncpreemptoff=1` ``` restic -r /mnt/backups/arco-pc/home/marc backup --verbose "/home/marc/" --exclude-file=/home/marc/GitProjects/config/Dokumente/home-exclude.txt ``` @@ -18,6 +18,22 @@ restic -r /mnt/backups/arco-pc/home/marc snapshots restic -r /mnt/backups/arco-pc/home/marc restore --target "/home/marc" (snapshot) ``` +### arco-pc-backup timeshift + +There is currently a problem in go that makes this command fail. Run the following command before retrying: `export GODEBUG=asyncpreemptoff=1` +``` +restic init --repo /mnt/backups/arco-pc/timeshift +``` +``` +sudo -E restic -r /mnt/backups/arco-pc/timeshift backup --verbose "/mnt/1d90c4d5-21d2-4455-bb4a-814de8496744/timeshift/snapshots/" +``` +``` +restic -r /mnt/backups/arco-pc/timeshift snapshots +``` +``` +restic -r /mnt/backups/arco-pc/timeshift restore --target "/mnt/1d90c4d5-21d2-4455-bb4a-814de8496744/timeshift/snapshots/" (snapshot) +``` + ## B2 backups ```bash