Little restore question, prevent overwrite admin account when merging servers

Richard G

Verified User
Joined
Jul 6, 2008
Messages
14,417
Location
Maastricht
I want to merge 2 servers into 1 server.
So server 1 is running and I want to transfer all accounts of server 2 to server 1.

This can be done by admin backup transfer. I just have to take care that there are no dupe accountnames, then it would not be a problem.

However, ofcourse there is already an admin account on server 2.

When I would restore this on server 1, the original admin account would be overwritten, which should not happen.

If I remember correctly, the solution to this is to rename the backup file before restoring, for example rename:
admin.admin.thewizzard.tar.gz
to
admin.admin2.thewizzard.tar.gz

Is this correct? Or should it be:
admin2.admin.thewizzard.tar.gz
or
admin2.admin2.thewizzard.tar.gz

I think my first thought, renaming it to admin.admin2.thewizzard.tar.gz before restoring on server 1 is correct, but I just want to be sure.
 
You cant restore names that already exist It will tell you the name is already in use.

The correct usage of the backup is:

adminuser.reselleruser.username.tar.gz

If you rename the username part it will restore to that username.
 
You cant restore names that already exist It will tell you the name is already in use.
Sorry, but no they won't. Upon restoring the username if it exist, it will just overwrite it without any warning. I already experienced that.

The correct usage of the backup is:

adminuser.reselleruser.username.tar.gz
It isn't. At least not with admin backup/transfer.
The name admin.admin.thewizzard.tar.gz is an existing name that a DA admin backup/restore made itself. So taken from an admin backup which made a backup of the admin. So I did not name anything myself.

These are some others that admin backup/transfer made:
-rw-r----- 1 admin thewizzard 12K Mar 28 00:58 admin.admin.thewizzard.tar.gz
-rw-r----- 1 admin otheruser 2.5M Mar 28 00:56 reseller.admin.username.tar.gz
-rw-r----- 1 admin someuser 47M Mar 28 00:49 reseller.resellername.username.tar.gz
-rw-r----- 1 admin someotheruser 46M Mar 28 00:57 user.admin.username.tar.gz
So the correct syntax is:
1.) kind of account (admin or reseller or user)
2.) name of account (admin when the account is from admin, or resellername)
3.) username (useraccount which is made under admin or under the reseller)

As you can see here username is a useraccount which is made and belongs to admin.
I just made use of the admin backups/transfers option on server 2 and this came out:
-rw-r----- 1 admin thewizzard 290738 Apr 13 22:11 admin.admin.thewizzard.tar.gz
So it's exactly as I say it is.

If I would restore this on server 1, the original admin.thewizzard account will be overwritten without any warning, which I already know for sure because I have tested this when installing the server the first time.

I will look around on the forum, I know for sure there was something about renaming admin.admin.thewizzard.tar.gz to admin.admin2.thewizzard.tar.gz so the admin account would be restored as admin2 and not as admin.
If I find it again I will post the link here.

If you rename the username part it will restore to that username.
Yes, but if it's the main admin account? Should I change thewizzard to thewizzard2 then? Or admin to admin2? That is what's not clear to me yet.
 
Last edited:
I've fixed it by renaming the accountname of admin thewizzard to something else.
After that backup and restore was a piece of cake.;)
 
Back
Top