I have a ubuntu 14.04 x64 distribution on a Linode VPS with Apache 2.4.7 and mySQL server 5.5.
I have several working sites on my server already and I need to have some automatic system that could do the following:
At 4 am GMT (my system clock is set to GMT) every day I need certain folders to be gzipped and sent to a specific backup folder. I also need the script to keep the last 7 copies only (including current file) and delete the oldest file within the backup folder.
Could anyone please assist? I have no experience with CRON or .sh scripts and I have only started using linux last month.
thanks in advance