customized for scott

This commit is contained in:
2024-04-06 21:27:08 -05:00
parent ab353bed7c
commit e4022fc739
6 changed files with 56 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
#!/bin/bash
export RESTIC_PASSWORD="benEatsBananas!"
export RESTIC_REPOSITORY="/mnt/truenas-backups/resticbackups/proxmox/etc"

View File

@@ -0,0 +1,4 @@
#!/bin/bash
export RESTIC_PASSWORD="benEatsBananas!"
export RESTIC_REPOSITORY="/mnt/truenas-backups/resticbackups/proxmox/home/wettsten"

View File

@@ -0,0 +1,4 @@
#!/bin/bash
export RESTIC_PASSWORD="benEatsBananas!"
export RESTIC_REPOSITORY="/mnt/truenas-backups/resticbackups/proxmox/opt"

View File

@@ -0,0 +1,4 @@
#!/bin/bash
export RESTIC_PASSWORD="benEatsBananas!"
export RESTIC_REPOSITORY="/mnt/truenas-backups/resticbackups/proxmox/root"

View File

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

View File

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