Subdomain scheduled restore

spottraining

Verified User
Joined
Jun 19, 2007
Messages
40
Hi

I have one question - how is best way in DirectAdmin to scheduled restore one subdomain?

Why this question - I want to add to my site some demos (different CMS systems). I want them all install to subdomain -demos.mydomain.com/cms1, cms2 etc. My idea is make backup from this subdomain and then set up scheduled restore. When I add some new CMS or updates - the I make only new full backup of this subdomain.

But now is question - how is the best way to do so? Maybe I need to add extra account for this subdomain. How I understand DirectAdmin backup solution - they backing up everything at account. And when I have mydomain.com account and there subdomain - then at restore - its restores also main domain and site? Is this right?

Also - restore function in DirectAdmin - this removes all files first or just overwrites with files from restore?

But how its possible then add cron to restore account? I need to restore all files and also all databases.
 
Most important question is - is it possible to restore backup from command line. And when yes - then how.
 
I think this would work...

Just create a normal user with the subdomain you require. Then just use the usual backup tool in DA as this restores everything on the account.

If the subdomain has its own account, it won't restore the main domain.

I think thats right, i may of misread what you are trying to do though.

The admin level restore function just overwrite's the duplicates. I have just tested it on my server. :)

Not sure about the user level backup and restore though, i assume it works in the same way.

Hope this clears a few things up even if it doesn't solve your problem.
 
This and is problem, that I dont want to restore main domain. I have main domain for community and news - but I want to show my services at subdomain and I need restore only this subdomain.

This is good to now, that its overwrites existing files. Then I can simply delete all files before restore. This is easy. Only thing - how is possible to restore from command line?
 
Create the subdomain as it's own domain.

Or create your own backup/restore solution.

Jeff
 
Back
Top