I think I need a better understanding of the backup/restore process. But I cannot find it in the documentation.
This is the situation.
I run a mail server. One of the domains hosted is abc.com
I have a live backup server. I make backups on the mail server and send them to the backup server.
When I installed and tested the backup/restore I created a backup on the mail server. Sent it over to the backup server.
Then I restored the domain on the backup server. All went fine.
Now in the process of regularly testing your backup and restore procedure I tried to restore the back again. This resulted in the infamous error message while restoring the domain abc:
a clash was detected : A unix user named abc already exists - try selecting a different administration username
I assume that at the original test restore I selected the option Re-allocate UIDs and GID. Because on both systems the users exist, but with different UID and GID:
On the mail server:
drwxr-x— 13 1016 1005 4096 Jun 15 07:00 abc
And on the backup server:
drwxr-x— 12 1011 1003 4096 May 24 2016 abc
This is somewhat understandable. The user abc must exist on both systems because the domains exist. I assume this administrative user must exist when the domain exist.
It is also logical that the UID and GID are different. The domains on both servers were created in a different sequence.
What I actually want is this. I have the backup server running. Fully configured with all users and all domains. When the main server crashes, I want to do a restore of the latest backup, switch the DNS entry at the name server and continue.
So how do I achieve that? Should I delete all the domains on the backup server and all the administrative users? And then do a restore while not re-allocating UID’s?
Or must I keep the back-up server without any domains and just restore and create the domains when the main server crashed? But how to I make sure the backup/restore can be tested?
How can I overcome the current situation? Delete the domains? Will that delete the administrative users as well? Or delete the domains and the users by hand? And then recreate the domains? Is this the same as the restore option Delete and recreate virtual servers?
I have some created some users outside Virtualmin on the mail server. Not all of them exist on the backup server. In other words: if I do a restore using the same UID on the backup server, there will be no conflict with non-virtualmin users.
Since this should be a common problem with the setup I have, and I don’t see many problem reports, do I do something unusual or stupid?
jlinkels