hey guys,
I have a website and I'm making daily changes to it's public_html folder.
Can any of you clever guys write me a php script to copy the contents of the public_html folder to a folder called 'backup' on the root of the server??
Ideally I'd prefer it if the script could save each day in to a different folder named after the date it was copied. Then after 3 days worth of backups delete the oldest one and redo, so there's always 3 days backup on the site.
I'll then schedule it as a cron job and get my own server to pick it up each day.
Can anyone help me?? Or is there a better way of backing up the website each day?
I have no PHP experience, so I'm lost where to start. I'm willing to have at bash at doing it myself but I'll need some help starting.
Cheers in advance
I have a website and I'm making daily changes to it's public_html folder.
Can any of you clever guys write me a php script to copy the contents of the public_html folder to a folder called 'backup' on the root of the server??
Ideally I'd prefer it if the script could save each day in to a different folder named after the date it was copied. Then after 3 days worth of backups delete the oldest one and redo, so there's always 3 days backup on the site.
I'll then schedule it as a cron job and get my own server to pick it up each day.
Can anyone help me?? Or is there a better way of backing up the website each day?
I have no PHP experience, so I'm lost where to start. I'm willing to have at bash at doing it myself but I'll need some help starting.
Cheers in advance