diff --git a/restic-cron b/restic-cron index e14eb6a..3334b71 100755 --- a/restic-cron +++ b/restic-cron @@ -51,7 +51,7 @@ if [ $status -ne 0 ]; then fi # Verify the backup every 4 weeks -if [ $(($(date +%W) % 4)) = 0 ]; then +if [ $(($(date +%-W) % 4)) = 0 ]; then test -z "$RESTIC_QUIET" && echo "I: Check step…" restic $RESTIC_QUIET check status=$?