quick PHP help?

Associate
Joined
8 Mar 2007
Posts
2,176
Location
between here and there
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've contacted my hosting company and asked for a automated backup program but I won't hear from them for a while.

I'll just keep doing to manually till they sort there lives out.

cheers for the replies anyway.

:)
 
Back
Top Bottom