From e4022fc7394416341bc2bd8b45b5afb30abe9981 Mon Sep 17 00:00:00 2001 From: akanealw Date: Sat, 6 Apr 2024 21:27:08 -0500 Subject: [PATCH] customized for scott --- restic/restic-local-scott/export-etc.sh | 4 +++ .../export-home-wettsten.sh | 4 +++ restic/restic-local-scott/export-opt.sh | 4 +++ restic/restic-local-scott/export-root.sh | 4 +++ .../restic-local-scott/restic-local-backup.sh | 31 +++++++++++++++++++ .../restic-local-scott/restic-local-init.sh | 9 ++++++ 6 files changed, 56 insertions(+) create mode 100755 restic/restic-local-scott/export-etc.sh create mode 100755 restic/restic-local-scott/export-home-wettsten.sh create mode 100755 restic/restic-local-scott/export-opt.sh create mode 100755 restic/restic-local-scott/export-root.sh create mode 100755 restic/restic-local-scott/restic-local-backup.sh create mode 100755 restic/restic-local-scott/restic-local-init.sh diff --git a/restic/restic-local-scott/export-etc.sh b/restic/restic-local-scott/export-etc.sh new file mode 100755 index 0000000..6632ddf --- /dev/null +++ b/restic/restic-local-scott/export-etc.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +export RESTIC_PASSWORD="benEatsBananas!" +export RESTIC_REPOSITORY="/mnt/truenas-backups/resticbackups/proxmox/etc" diff --git a/restic/restic-local-scott/export-home-wettsten.sh b/restic/restic-local-scott/export-home-wettsten.sh new file mode 100755 index 0000000..bbfb412 --- /dev/null +++ b/restic/restic-local-scott/export-home-wettsten.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +export RESTIC_PASSWORD="benEatsBananas!" +export RESTIC_REPOSITORY="/mnt/truenas-backups/resticbackups/proxmox/home/wettsten" diff --git a/restic/restic-local-scott/export-opt.sh b/restic/restic-local-scott/export-opt.sh new file mode 100755 index 0000000..eb91204 --- /dev/null +++ b/restic/restic-local-scott/export-opt.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +export RESTIC_PASSWORD="benEatsBananas!" +export RESTIC_REPOSITORY="/mnt/truenas-backups/resticbackups/proxmox/opt" diff --git a/restic/restic-local-scott/export-root.sh b/restic/restic-local-scott/export-root.sh new file mode 100755 index 0000000..a417fb3 --- /dev/null +++ b/restic/restic-local-scott/export-root.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +export RESTIC_PASSWORD="benEatsBananas!" +export RESTIC_REPOSITORY="/mnt/truenas-backups/resticbackups/proxmox/root" diff --git a/restic/restic-local-scott/restic-local-backup.sh b/restic/restic-local-scott/restic-local-backup.sh new file mode 100755 index 0000000..9864f43 --- /dev/null +++ b/restic/restic-local-scott/restic-local-backup.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +export RESTIC_PASSWORD="benEatsBananas!" + +# backup /home/wettsten +export RESTIC_REPOSITORY="/mnt/truenas-backups/resticbackups/proxmox/home/wettsten" +restic unlock +restic backup /home/wettsten --no-cache -v +restic unlock +restic forget --keep-last 25 --prune + +# backup /etc +export RESTIC_REPOSITORY="/mnt/truenas-backups/resticbackups/proxmox/etc" +restic unlock +restic backup /etc --no-cache -v +restic unlock +restic forget --keep-last 25 --prune + +# backup /opt +export RESTIC_REPOSITORY="/mnt/truenas-backups/resticbackups/proxmox/opt" +restic unlock +restic backup /opt --no-cache -v +restic unlock +restic forget --keep-last 25 --prune + +# backup /root +export RESTIC_REPOSITORY="/mnt/truenas-backups/resticbackups/proxmox/root" +restic unlock +restic backup /root --no-cache -v +restic unlock +restic forget --keep-last 25 --prune diff --git a/restic/restic-local-scott/restic-local-init.sh b/restic/restic-local-scott/restic-local-init.sh new file mode 100755 index 0000000..ec748cd --- /dev/null +++ b/restic/restic-local-scott/restic-local-init.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +export RESTIC_PASSWORD="benEatsBananas!" + +restic -r /mnt/truenas-backups/resticbackups/proxmox/home/wettsten init +restic -r /mnt/truenas-backups/resticbackups/proxmox/etc init +restic -r /mnt/truenas-backups/resticbackups/proxmox/opt init +restic -r /mnt/truenas-backups/resticbackups/proxmox/root init +