diff --git a/restic.zip b/restic.zip new file mode 100755 index 0000000..72b3c9f Binary files /dev/null and b/restic.zip differ diff --git a/restic/restic-sftp-scott/export-etc.sh b/restic/restic-sftp-scott/export-etc.sh new file mode 100755 index 0000000..8d1bffe --- /dev/null +++ b/restic/restic-sftp-scott/export-etc.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +export RESTIC_PASSWORD="benEatsBananas!" +export RESTIC_REPOSITORY="sftp:root@resticsftp:/mnt/data/backups/resticbackups/changemepls/etc" diff --git a/restic/restic-sftp-scott/export-home-wettsten.sh b/restic/restic-sftp-scott/export-home-wettsten.sh new file mode 100755 index 0000000..78d6d2c --- /dev/null +++ b/restic/restic-sftp-scott/export-home-wettsten.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +export RESTIC_PASSWORD="benEatsBananas!" +export RESTIC_REPOSITORY="sftp:root@resticsftp:/mnt/data/backups/resticbackups/changemepls/home/akanealw" diff --git a/restic/restic-sftp-scott/export-opt.sh b/restic/restic-sftp-scott/export-opt.sh new file mode 100755 index 0000000..32b590d --- /dev/null +++ b/restic/restic-sftp-scott/export-opt.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +export RESTIC_PASSWORD="benEatsBananas!" +export RESTIC_REPOSITORY="sftp:root@resticsftp:/mnt/data/backups/resticbackups/changemepls/opt" diff --git a/restic/restic-sftp-scott/export-root.sh b/restic/restic-sftp-scott/export-root.sh new file mode 100755 index 0000000..a705afb --- /dev/null +++ b/restic/restic-sftp-scott/export-root.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +export RESTIC_PASSWORD="benEatsBananas!" +export RESTIC_REPOSITORY="sftp:root@resticsftp:/mnt/data/backups/resticbackups/changemepls/root" diff --git a/restic/restic-sftp-scott/restic-sftp-backup.sh b/restic/restic-sftp-scott/restic-sftp-backup.sh new file mode 100755 index 0000000..c584729 --- /dev/null +++ b/restic/restic-sftp-scott/restic-sftp-backup.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +export RESTIC_PASSWORD="benEatsBananas!" + +# backup /home/wettsten +export RESTIC_REPOSITORY="sftp:root@resticsftp:/mnt/data/backups/resticbackups/changemepls/home/wettsten" +restic unlock +restic backup /home/wettsten --no-cache -v +restic unlock +restic forget --keep-last 25 --prune + +# backup /etc +export RESTIC_REPOSITORY="sftp:root@resticsftp:/mnt/data/backups/resticbackups/changemepls/etc" +restic unlock +restic backup /etc --no-cache -v +restic unlock +restic forget --keep-last 25 --prune + +# backup /opt +export RESTIC_REPOSITORY="sftp:root@resticsftp:/mnt/data/backups/resticbackups/changemepls/opt" +restic unlock +restic backup /opt --no-cache -v +restic unlock +restic forget --keep-last 25 --prune + +# backup /root +export RESTIC_REPOSITORY="sftp:root@resticsftp:/mnt/data/backups/resticbackups/changemepls/root" +restic unlock +restic backup /root --no-cache -v +restic unlock +restic forget --keep-last 25 --prune diff --git a/restic/restic-sftp-scott/restic-sftp-init.sh b/restic/restic-sftp-scott/restic-sftp-init.sh new file mode 100755 index 0000000..5466e05 --- /dev/null +++ b/restic/restic-sftp-scott/restic-sftp-init.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +export RESTIC_PASSWORD="benEatsBananas!" + +restic -r sftp:root@resticsftp:/mnt/data/backups/resticbackups/changemepls/home/wettsten init +restic -r sftp:root@resticsftp:/mnt/data/backups/resticbackups/changemepls/etc init +restic -r sftp:root@resticsftp:/mnt/data/backups/resticbackups/changemepls/opt init +restic -r sftp:root@resticsftp:/mnt/data/backups/resticbackups/changemepls/root init