From f837312d3ecf0408faf5def25fd161d9c6d0f23e Mon Sep 17 00:00:00 2001 From: Filip Pytloun Date: Thu, 20 Apr 2023 09:39:27 +0200 Subject: [PATCH] Allow globbing for some args --- backup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backup.sh b/backup.sh index 07b38e6..4439126 100755 --- a/backup.sh +++ b/backup.sh @@ -34,12 +34,12 @@ echo "restic_unlock_duration $(echo "$(date +%s) - $ts" | bc)" >> /tmp/metrics log_info "Running restic backup" ts=$(date +%s) -restic backup --verbose --tag "${TAG}" "${BACKUP_PATH}" +restic backup --verbose --tag "${TAG}" ${BACKUP_PATH} echo "restic_backup_duration $(echo "$(date +%s) - $ts" | bc)" >> /tmp/metrics log_info "Cleaning up old snapshots" ts=$(date +%s) -restic forget --prune --tag "${TAG}" -g paths,tags "${KEEP_ARGS}" +restic forget --prune --tag "${TAG}" -g paths,tags ${KEEP_ARGS} echo "restic_forget_duration $(echo "$(date +%s) - $ts" | bc)" >> /tmp/metrics