From 5a24677cea7e5eddd54116b6544e9a3321ac272e Mon Sep 17 00:00:00 2001 From: RealStickman Date: Sat, 26 Dec 2020 11:46:04 +0100 Subject: [PATCH] Add local smb repo --- arch-config/Dokumente/restic.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/arch-config/Dokumente/restic.md b/arch-config/Dokumente/restic.md index 973f0a82..8a69cb0f 100644 --- a/arch-config/Dokumente/restic.md +++ b/arch-config/Dokumente/restic.md @@ -1,5 +1,23 @@ # Restic repos: +## Local backups + +## arco-pc-backup home + +``` +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 +``` +``` +restic -r /mnt/backups/arco-pc/home/marc snapshots +``` +``` +restic -r /mnt/backups/arco-pc/home/marc restore --target "/home/marc" (snapshot) +``` + ## B2 backups ```bash @@ -21,7 +39,7 @@ restic -r b2:arco-pc-backup:/home/marc backup --verbose "/home/marc/" --exclude- restic -r b2:arco-pc-backup:/home/marc snapshots ``` ```bash -restic -r b2:arco-pc-backup:/home/marc restore --target "/home/marc/" +restic -r b2:arco-pc-backup:/home/marc restore --target "/home/marc/" (snapshot) ``` ### arco-pc-backup timeshift