Restore Site Files With Cron Jobs? 09-28-2012, 09:08 AM
#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.
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.
![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)
can't be that hard