Login Register


Restore Site Files With Cron Jobs? filter_list
Author
Message
Restore Site Files With Cron Jobs? #1
Hey guys,

I want to restore a site from a generic backup on a scheduled timer.
My theory is to use cron jobs to execute a php script (on a set time interval) which restores the site from a .tar on the same ftp server as the files.

So it would need to delete all files on the server (except the .tar) then extract the contents of the .tar back onto the server.

Is this possible?
If so, were would I find such a script. I have looked around the interwebz and can't find anything matching my needs, nor do I have the skills to write the script myself.

Cheers.



Reply

RE: Restore Site Files With Cron Jobs? #2
I hate to do this, but BUMP!

Another question:
Is it possible to store the backup on a different server, somehow automatically;
Deletes all files of the server
Downloads the backup .tar from a separate server on to the existing
Extract the .tar

and repeat? Or is that to advanced?



Reply

RE: Restore Site Files With Cron Jobs? #3
Hi

You can make a php script that would delete all files from the server, download the backup and extract it Smile can't be that hard Smile I'll try to make it for ya Smile
Staff will never ever ask you for your personal information.
We know everything about you anyway.

Reply

RE: Restore Site Files With Cron Jobs? #4
(10-01-2012, 12:01 PM)1llusion Wrote: Hi

You can make a php script that would delete all files from the server, download the backup and extract it Smile can't be that hard Smile I'll try to make it for ya Smile

I love you.



Reply

RE: Restore Site Files With Cron Jobs? #5
(10-01-2012, 12:06 PM)3r3bu$ Wrote:
(10-01-2012, 12:01 PM)1llusion Wrote: Hi

You can make a php script that would delete all files from the server, download the backup and extract it Smile can't be that hard Smile I'll try to make it for ya Smile

I love you.

Just cron a wget and overwrite it.

Reply







Users browsing this thread: 1 Guest(s)