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
 
to hijack the thread

I need a PHP script that will select all images from a folder when the image name = $avariable

Having a few problems with it

Any help mucho appericiated
 
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.

:)
 
I'll then schedule it as a cron job and get my own server to pick it up each day.

If your own server is downloading a copy of the site anyway each day why not just download it into differently dated directories?

Seems a bit redundant to make the webserver make a copy just for downloading.
 
If your own server is downloading a copy of the site anyway each day why not just download it into differently dated directories?

Seems a bit redundant to make the webserver make a copy just for downloading.

If the files are downloaded to amore accessible location for an external script then it would be useful :)
 
Back
Top Bottom