Jump to content

[SOLVED] Site archive using PHP?


michaelwl

Recommended Posts

I need a mechanism I can use to quickly backup and recover while I'm busy developing and changing things on the site... My Service Provider can't help with something I can use my self... The only advice the guy could give was... :

 

The best I can recommened is to get a script that run the command "tar czfv backup.tgz /var/www/vhosts/domainname/httpdcs/*" to zip up the contents, and another script to delete old files then extract those files again.

 

What would the php look like to run the tar command above, and then from that I assume you'll do a similar script to delete made archives.... ?

 

Thanks, I appreciate all the help

Link to comment
https://forums.phpfreaks.com/topic/61110-solved-site-archive-using-php/
Share on other sites

take a look at this

 

http://rcchjr.awardspace.com/rc_index.php

PW: cshjvr1661

 

This is a test sample site

 

Software uses php / mysql to create a backup

 

You can restore selected files or complete site revisions

 

It does not replace existing structure but creates a fold in htdocs root /1.0.3/......

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.