better folder names

This commit is contained in:
Shannon Sterz 2017-07-23 11:39:49 +02:00
parent 2c5860511d
commit a4c7e48ca0

View file

@ -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