- Make this file on your home computer, called crontab2.sh
Replacing domain.com with your site name. This will create files in the base dir with names like 2005_05_01-site_backup.gz. (Note this script will make complete backups of your entire site. Change domain.com to certain folders).
This uses the -r switch which filters through all your folders. You could also use -1 to make it faster if it’s too slow/resource hungry.
2. Make this file on your home computer too called crontab.txt
(You might/should be able to use "0 1 * * */3
bash ~/crontab2.sh" instead).
This will backup your site every 3 days at 01:00. I’d suggest you do it at a quiet time for your site as it would probably take a while to do.
3. Login to FTP and upload these files to the base dir (ie not in the domain.com folder)
4. Login to SSH and type
(you can use “crontab -l” to make sure it’s added it properly).