fix: update scripts
This commit is contained in:
parent
1b3d16b6e0
commit
d248d4ba00
3 changed files with 3 additions and 3 deletions
|
@ -6,7 +6,7 @@ ntfy() {
|
|||
|
||||
ntfy -m "performing backup..."
|
||||
if restic \
|
||||
-r "sftp://ixvd_backup_storage//$(hostname)" \
|
||||
-r "/mnt/backup/restic/$(hostname)" \
|
||||
-p "/neb/secrets/restic/$(hostname).secret" \
|
||||
backup \
|
||||
--tag auto \
|
||||
|
|
|
@ -6,7 +6,7 @@ ntfy() {
|
|||
|
||||
ntfy -m "forgetting old backups..."
|
||||
if restic \
|
||||
-r "sftp://ixvd_backup_storage//$(hostname)" \
|
||||
-r "/mnt/backups/restic/$(hostname)" \
|
||||
-p "/etc/ixvd/secrets/restic/$(hostname).secret" \
|
||||
forget \
|
||||
--keep-last 10 \
|
||||
|
|
|
@ -6,7 +6,7 @@ ntfy() {
|
|||
|
||||
ntfy -m "pruning old backups..."
|
||||
if restic \
|
||||
-r "sftp://ixvd_backup_storage//$(hostname)" \
|
||||
-r "/mnt/backups/restic/$(hostname)" \
|
||||
-p "/etc/ixvd/secrets/restic/$(hostname).secret" \
|
||||
prune; then
|
||||
notify -m "pruning succeeded"
|
||||
|
|
Loading…
Reference in a new issue