From a4c7e48ca0947667b339115a2a525d51904791f5 Mon Sep 17 00:00:00 2001 From: Stefan Sterz Date: Sun, 23 Jul 2017 11:39:49 +0200 Subject: [PATCH] better folder names --- backup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backup.sh b/backup.sh index 10585df..ef3a464 100755 --- a/backup.sh +++ b/backup.sh @@ -141,7 +141,7 @@ HOUR=$($DATE +"%H") # %H = hour as number # Create a backup every first day in a month if [[ $DAY = 01 ]]; then - backup "monthly/$MONTH" + backup "monthly/$MONTH-$($DATE +"%B")" fi # Create a special backup approx every week @@ -151,7 +151,7 @@ if [[ $WEEKDAY = 7 ]]; then fi # Create daily backups -backup "daily/$($DATE +"%A")/$HOUR" +backup "daily/$WEEKDAY-$($DATE +"%A")/$HOUR" # Send email if an adress was provided if [ -n MAILADRESS ]; then