I want to have the following backup cycle on Debian Lenny:
Monday : Full backup
Tuesday : Differential backup relative to Monday
Wednesday: Differential backup relative to Monday
Thursday : Differential backup relative to Monday
Friday : Differential backup relative to Monday
Saturday : Differential backup relative to Monday
Sunday : Differential backup relative to Monday
Right now I use:
tar -czf /tmp/backup/all-sites-$(date +"%F").tar.gz --exclude '*/imagecache/*' --exclude '*/logs/*' /var/www/public_html/ > /tmp/backup/logfile 2>&1
Should I use --after-date
or --newer
option? If so, what is the syntax for those options?
The examples on Google / MAN pages makes me more confused that enlighten me.