From 7571ccb1a415009ae8e7b86e1207a30d74758420 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Tue, 9 Feb 2021 20:15:53 +0100 Subject: [PATCH] Add backup of /etc/nginx for hydra server --- arch-config/Dokumente/restic.md | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/arch-config/Dokumente/restic.md b/arch-config/Dokumente/restic.md index 8294f7bc..2f428e0f 100755 --- a/arch-config/Dokumente/restic.md +++ b/arch-config/Dokumente/restic.md @@ -3,7 +3,6 @@ ## Local backups ### 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 @@ -19,7 +18,6 @@ restic -r /mnt/backups/arco-pc/home/marc restore --target "/home/marc" (snapshot ``` ## B2 backups - ```bash export B2_ACCOUNT_ID= ``` @@ -28,7 +26,6 @@ export B2_ACCOUNT_KEY= ``` ### arco-pc-backup home - ```bash restic -r b2:arco-pc-backup:/home/marc init ``` @@ -43,7 +40,6 @@ restic -r b2:arco-pc-backup:/home/marc restore --target "/home/marc/" (snapshot) ``` ### arco-pc-backup 3tb toshiba - ``` restic -r b2:arco-pc-backup:/mnt/harddrive init ``` @@ -57,8 +53,22 @@ restic -r b2:arco-pc-backup:/mnt/harddrive snapshots restic -r b2:arco-pc-backup:/mnt/harddrive restore --target "/mnt/storage" (snapshot) ``` -### realstickman-xyz-backup root +### hydra-server-backup /etc/nginx +```bash +restic -r b2:hydra-server-backup:/etc/nginx init +``` +```bash +restic -r b2:hydra-server-backup:/etc/nginx backup --verbose "/etc/nginx" +``` +```bash +restic -r b2:hydra-server-backup:/etc/nginx snapshots +``` +```bash +restic -r b2:hydra-server-backup:/etc/nginx restore --target "/etc/nginx" +``` + +### realstickman-xyz-backup root ```bash restic -r b2:realstickman-xyz-backup:root init ``` @@ -73,7 +83,6 @@ restic -r b2:realstickman-xyz-backup:root restore --target "/root" ``` ### realstickman-xyz-backup etc - ```bash restic -r b2:realstickman-xyz-backup:etc init ``` @@ -88,7 +97,6 @@ restic -r b2:realstickman-xyz-backup:etc restore --target "/etc" ``` ### nextcloud-realstickman-backup var - ``` restic -r b2:nextcloud-realstickman-backup:var init ```