Restoring backups > all domains are overwritten

betserd

Verified User
Joined
Oct 29, 2012
Messages
14
Hello,

Today the drupal sit of one of the domains on my VPS crashed. So I needed to restore that domain from the backups. However there is no way to restore a single domain and there are more website on my VPS, one from a lady who has done a lot of work on her site today. She is quite pissed, but at least the other site is ok now.

I am the only admin / reseller / user on the system, as this is the easiest way to work for me. Now the only way I could setup backups is for my user only, including all domains on the server.

I have read about the inability to restore a single domain - which is quite a huge lack in functionality in my opinion - and was trying to setup dummy users to be able to restore single domains.

However when I create a new dummy user and want to add an existing domain to that user, it says that domain already exists , as it is connected to my user.

How can I set this up? I hope there is a less crooked way of bypassing this problem..?
I assume that almost all users must struggle with this lack of functionality in the backup feature?
 
Hello,

You should really have separate accounts for every single domain, otherwise you need to restore domains manually.

Note, you might want to write a plugin to have more flexible restoring functionality in directadmin (or find somebody to do it for you).
 
is there any way to do this once the domains are created on one single user account?

Is there not such a plugin already existing, this must be a real common thing or not?
 
If you do use separate account for single domain, so restore a single user will restore just a domain... not all...

Regards
 
is there any way to do this once the domains are created on one single user account?

Is there not such a plugin already existing, this must be a real common thing or not?

If you want this implemented in Directadmin, then you might need to post a feature request.

Anyway if you host every single domain on a separate account, then you can restore only that one account if it's needed.
 
Hello,

With regards to this feature, it's not the first time it's been requested.. it's been requested many times in fact.

The reason we have not implemented it is partially to the complexity of the backup/restore/merge process... but also partly due to design.

Many aspects of a User accounts are not domain specific. These include things like the databases and cronjobs.
If a per-domain backup is created, each backup would have all databases also included, hence it doesn't make quite as much sense to do it that way. (it's not the end of the world to have extra backups, but is somewhat redundant)

As it was mentioned above if you need per-domain backups, then the best way, and the way it was designed would be to keep them under different usernames.

I'm not saying we many not add this feature sometime in the future (as anything is possible), but we do have some hesitation in doing so.

John
 
Last edited by a moderator:
I Understand the complexity of the setup vs this feauture. There might be possibilities where you can select in a restore job which folders (domains) and which databases you want to restore. It might be a simple list of all folders and files in a restore job where you could just select the items to restore. This has the advantage that you could restore more specifically within one domain as well.

Back to my current situation; I have now multiple domains under just one user account. Is there any way to create new users and let them take over existing domains?
 
Back to my current situation; I have now multiple domains under just one user account. Is there any way to create new users and let them take over existing domains?
You can do this through the root shell login; see /usr/local/directadmin/scripts/move_domain.sh.

Jeff
 
Back to my current situation; I have now multiple domains under just one user account. Is there any way to create new users and let them take over existing domains?

You might need to create a new user with a fake domain, something like domain.com, and move a real domain to the new account as Jeff suggested. Then later remove the fake domain and epxport/import data from/into MySQL database. Of course you 'll need to change MySQL credentials in PHP scripts.
 
Back
Top