Move user domains to another server and merge them

eugenyuk

Verified User
Joined
Sep 29, 2011
Messages
7
Hi,

I have 2 servers with working directadmin.
Server1: directadmin ver. 1.33.7
Server2: directadmin ver. 1.36.2

On Server1, I have reseller reseller_name1 who has user user_name1. To this user assined ip address 1.2.3.4. And this user has domains domain_name1 and domain_name2.

On Server2, I have reseller reseller_name2 who has user with the same name user_name1. To this user assigned ip address 5.6.7.8. And this user has domains domain_name3 and domain_name4.

My question:
How cat I move user_name1 domains domain_name1 and domain_name2 from Server1 to user_name1 on Server2 (e.g. MERGE domains)?

Thank you very much for any help.
 
I believe that if you backup on one machine and restore on the other the new domains will be added. There may be other issues (such as passwords) and certainly you'll need to manually adjust the IP# if necessary.

Be sure to back up server two as well, just in case there's a prolblem.

Note I only guarantee work I perform; not work I write about. If you need guaranteed work please feel free to contact me at the email address or the telephone number below, in my siglines.

Jeff
 
Hello again! Thank you for your help, Jeff.

I just tried to move a test domain, and I note, that in file user.conf records ns1 and ns2 from Server1 rewrite corresponding records of Server2. So how can i do to remain its records of Server2?

And question №2. How to add new merged domains to serve them by DNS server of Server2?

Thank you.
 
Hello,

As Jeff mentioned, merging is a native ability. Just restore the backup with the name User name, and all domains in the backup will end up in the new account.

As for picking and chosing data, there are few ways of going about it.

1) On both the Admin Level -> Admin Backup/Transfer, and Reseller Level -> Manage User Backups, at the bottom (Backup / Restore Settings), there is the option for:
Code:
Restore with Local NameServers. (unchecked: Use NS values from backup)
enable that, and your local nameservers would be kept.

2) Another way to do it, is to do the merge/restore at the User Level. This prevents any high-level config (user.conf) from being touched, since Users don't have access to that. A well, User Level merge has specific backup options for the restore, so you can pick which items of the bacukp you want.

To do the User Level merge, put the tar.gz backup into the existing User's folder:
/home/user/backups

Login as the User, go to User Level -> Create/Restore Backups

then you can pick the bits you want. Domains will be created if they don't exist at all Levels.

John
 
Transfer user from one DA server to another

Hi,

I have 2 DA servers (DA1 and DA2).
On DA1 server I have a user example_user. This user belongs to admin.
On DA2 server I have a reseller example_reseller.
I want to transfer example_user from DA1 to DA2 and put him under example_reseller.

I did 2 variants.

Varian 1:

1. On DA1 I do Admin Backup/Transfer (Create Backup) of example_reseller.
2. Copy backup to DA2:/home/admin/admin_backups
3. On DA2 I do Admin Backup/Transfer (Restore Backup) of user.admin.example_user.tar.gz and I see:
Code:
Restores added to Queue

and nothing happens. User doesn't create.

Details

You will be notified via the Message System when the process is complete


Variant 2:

1. On DA2 create ip address.
2. Assign created ip address to reseller example_reseller.
3. Logged in as example_reseller.
4. Create user account with name example_user and assign created ip address.
5. Do Admin Backup/Transfer (Restore Backup) of user.admin.example_user.tar.gz.

And all seems to be OK, this user has 9 domains from backup, but no one loads in browser (I see juse blank page, no any errors), and apache writes nothing in domain's error_log.

Please direct me on the right way.


Thank you.
 
I and others can no doubt help you by logging into your system and checking to see what's going on, but I do charge for that as a commercial service. If interested please feel free to contact me by email; address below in my siglines.

Jeff
 
Back
Top