better folder names
This commit is contained in:
parent
2c5860511d
commit
a4c7e48ca0
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue