modified for scott

This commit is contained in:
2024-04-06 20:41:52 -05:00
parent d170292753
commit b8093ce1a9
7 changed files with 55 additions and 0 deletions

BIN
restic.zip Executable file

Binary file not shown.

View File

@@ -0,0 +1,4 @@
#!/bin/bash
export RESTIC_PASSWORD="benEatsBananas!"
export RESTIC_REPOSITORY="sftp:root@resticsftp:/mnt/data/backups/resticbackups/changemepls/etc"

View File

@@ -0,0 +1,4 @@
#!/bin/bash
export RESTIC_PASSWORD="benEatsBananas!"
export RESTIC_REPOSITORY="sftp:root@resticsftp:/mnt/data/backups/resticbackups/changemepls/home/akanealw"

View File

@@ -0,0 +1,4 @@
#!/bin/bash
export RESTIC_PASSWORD="benEatsBananas!"
export RESTIC_REPOSITORY="sftp:root@resticsftp:/mnt/data/backups/resticbackups/changemepls/opt"

View File

@@ -0,0 +1,4 @@
#!/bin/bash
export RESTIC_PASSWORD="benEatsBananas!"
export RESTIC_REPOSITORY="sftp:root@resticsftp:/mnt/data/backups/resticbackups/changemepls/root"

View File

@@ -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

View File

@@ -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