From fe37feb02e5f19a85ecf51e684992ad51489a76e Mon Sep 17 00:00:00 2001 From: Stefan Sterz Date: Sat, 22 Jul 2017 08:36:58 +0200 Subject: [PATCH] fix weekly rotation of daily backup --- backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup.sh b/backup.sh index f607aec..bc38d1c 100644 --- a/backup.sh +++ b/backup.sh @@ -138,7 +138,7 @@ if [[ $WEEKDAY = 7 ]]; then fi # Create daily backups -backup "daily/$DAY-$HOUR" +backup "daily/$($DATE +"%A")/$HOUR"