daily restore cron

jechilt

Verified User
Joined
Jun 21, 2004
Messages
212
Today, we created a demo account and demo-email accounts for people to try. We then created a backup of the two accounts and the files are in the .gz format. We moved the backup out of the user_backup directory to keep the original contents out of reach from the accounts.
We now want to run a cron that will expand and overwrite the two accounts created on a daily basis.
Any suggestions to best do this? Not sure how to tell a cron to untar the files over the accounts...
 
You shouldn't have to do this for the demo account since no actions work. They all say "That feature has been disabled for the demo" if you try to do anything.
 
hi...

sorry if i was not clear.
i set up my own demo accounts because i have software like a website building tool that the user can log on to build a site with. also, i set up an demo email account that the user can log on with the email skin and play around a little. i can't do this with the default demo accounts...thus our creation of our own accounts.
 
would it be possible to run a cron with something like:
tar -xzvf /backups/demo1.tar.gz /home/demo1>/dev/nul
it should copy back the entire contents, to include passwords, etc being that a full backup of the site was run from the reseller account? I looked at the tar file and it all appears to be there...
 
Last edited:
Back
Top