I am very new to unix scripting. Right now I need to back up some directories individually once a week and do differential backups daily.
I am using the command tar -cvpxf /backup/flypaper/flypaper_$(date "+%Y%m%d").tar.gz /srv/www/flypaper to make the full backup. How now would I make daily differential backup?
I have multiple commands like above to make a backup of all the folders in the /srv/www folder in a bash script that runs in crontab. It just runs each line with a different directory. So I need a full backup on Sunday and differentials for the other days.
Any help would be greatly appreciated. I have read the other threads, but I guess I do not know enough to correlate them.