Hi, I want to automatically (using cron) backup all my sites. I am having reseller account and have few sites. So probably I will prefer to run only one script in main account which can backup all the sites Any help/suggestion will be highly appreciated.. Regards
if it is linux you might try the tar cvfz command to compress and backup your sites.. but the downside is it will fill up your allotted disk space. And might as well program or create a script that will just backup the applications/scripts not the images. Hope it helps
ya it is linux but Ionly have cpanel access and not shell. anyway thanks. I will ask my host about this and will write the solution here if I got one
You can still do it through cpanel..but better ask for the system information of how you will code your cron. Hope it helps
Does your host not back up your files and databases for you? Mine does an offsite backup every day which they can use to overwrite your current site if there is a problem.
well it's much better to do it for your own as added help would also mean additional payment such as restoration....i'll be posting up the script in a bit..
Create a backup script named: backup.script backup.script content: tar cvfz sitename-$(date +%Y%m%d).tgz /location/of/directory/to/be/backup add executable permission to backup.script cron entry 15 00 * * * root /location/of/backup.script or how you enter it onto your cpanel Hope It Helps
Since you are a reseller, there is no solution to backup your sub account to a main account. You need to put the backup script on each account as the cron will only execute on the account user permission. You can search around for backup script.
Thanks guys. I will try to what theblight said or better asked my host. He had told me that they do backup every week but that's a very long period. I need to do daily backup.