
Originally Posted by
agd
Hello.
It's possible to change the backup schedule ?
Instead of making the full job on Monday do it on Sunday.
I changed the cron configuration but on Monday the script did the full again because didn't find the full for this week.
Yes. Change the BACKUPWEEKFILE date line:
Code:
date +%W > $BACKUPWEEKFILE
You will want the %U option. I use %V myself, because it works better for end of year issues. If you wanted both ISO week and Sunday as first day, you'd need to add some code.
Code:
%U week number of year, with Sunday as first day of week (00..53)
%V ISO week number, with Monday as first day of week (01..53)
%W week number of year, with Monday as first day of week (00..53)