From 282fa2fe6829c8a6df2d5f96025ebd2525807765 Mon Sep 17 00:00:00 2001 From: Raine Date: Wed, 18 Oct 2023 18:07:29 +0200 Subject: [PATCH] fix: restic paths --- common/restic/backup.sh | 2 +- common/restic/forget.sh | 2 +- common/restic/prune.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/restic/backup.sh b/common/restic/backup.sh index eded6dd..aebb9de 100644 --- a/common/restic/backup.sh +++ b/common/restic/backup.sh @@ -6,7 +6,7 @@ ntfy() { ntfy -m "performing backup..." if restic \ - -r "sftp://ixvd_backup_storage//backups/restic-$(hostname)" \ + -r "sftp://ixvd_backup_storage//$(hostname)" \ -p "/neb/secrets/restic/$(hostname).secret" \ backup \ --tag auto \ diff --git a/common/restic/forget.sh b/common/restic/forget.sh index 8119eb0..5437567 100644 --- a/common/restic/forget.sh +++ b/common/restic/forget.sh @@ -6,7 +6,7 @@ ntfy() { ntfy -m "forgetting old backups..." if restic \ - -r "sftp://ixvd_backup_storage//backups/restic-$(hostname)" \ + -r "sftp://ixvd_backup_storage//$(hostname)" \ -p "/etc/ixvd/secrets/restic/$(hostname).secret" \ forget \ --keep-last 10 \ diff --git a/common/restic/prune.sh b/common/restic/prune.sh index b62b874..9fe276c 100644 --- a/common/restic/prune.sh +++ b/common/restic/prune.sh @@ -6,7 +6,7 @@ ntfy() { ntfy -m "pruning old backups..." if restic \ - -r "sftp://ixvd_backup_storage//backups/restic-$(hostname)" \ + -r "sftp://ixvd_backup_storage//$(hostname)" \ -p "/etc/ixvd/secrets/restic/$(hostname).secret" \ prune; then notify -m "pruning succeeded"