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