Bugs? with backup / restore

pppplus

Verified User
Joined
Dec 19, 2008
Messages
523
"Bug" multi-servers

I don't know if it's a bug or not.

I use multi-server and my domains are registered in 2 servers.

I have to reinstall one server :
I use my backups to reinstall all accounts.

But there is an error for each domain : not created, because they already exist on the second server.

Is it possible, when we restore an account, checking domain, but no alert, if domain is not registered on the the current server ?

roundcube
Roundcube accounts and settings are not backup with account of users. So when we move a account from one server to another, or reinstall it, we lose all datas for roundcube (settings, contacts...)
 
That's not a bug. You can not move domain from one server to another, within multi-servers function, untill you delete or rename domain.
 
Yes, I understand and desactivate multi-server in that case.

But is it really logical ?
Because on the 2nd server, we see domain is not local, in DNS settings.

So, my mind is when we reinstall account in 1st server, it has to overwrite DNS settings on second server (for example, with change of IP)

It's why I write it can be a bug. But maybe I am wrong, and there is better explanation than mine.

But if domain is really registered (not just a copy) in 2nd server, it's logical we can't register it a new time. So 2 different cases for me.

That's just a detail. Not very important.
 
I think no one but John can give a good answer on this question. I've never asked why is it so, all I know is that is how it works. In order I think to protect your domain from a mistake or a not good reseller.
 
Hello,

But there is an error for each domain : not created, because they already exist on the second server.
That would be an expected result with the "Domain Check" option is enabled.

In your case, go to:
Admin Level -> Multi Server Setup (MSS)

and disable the "Domain Check" option for the MSS on the 2nd box.

Then do the restore. Since the "domain check" is not enabled, you won't get the error. However, since "zone transfer" is still checked, this will overwrite the zone on the 2nd box with the new zone that was just created.

John
 
Yes, it's better than desactivate multi-server ! I do not think to this simple solution.

I always think it's a small bug because domain do not really exists on 2nd server. It is just a copy of dns. Sorry to write it again.

But it is very small problem, not important to change. And we do not restaure server every day...
 
Feature Multi server is good up to I want move account between servers.
I used http://help.directadmin.com/item.php?id=97 instruction to transfer account.
Code:
If you are moving users between server without deleteing them from the original machine, and they share the same external dns server, then you might need to disable the "Domain Check" option. Without disabling it, DA will tell you that the domain already exists in your system (on the external machine). When you disable the "Domain Check" and leave Zone Transfer enabled, DA will blindly add the domain to the exernal machine (it still checks locally of course), and will overwrite any zone information that might already be there.
But it doesn't work for me. I've disabled "Domain Check" but during restore account on second machine, I have "Domain already exist". So, only when I delete account on first machine then I can restore on second machine.
So, anybody have solution to keep account suspended on first machine.
I explain, on first machine I have account with IP (non main IP server) and down interface, after I backup and restore to second machine.
 
Last edited:
If you first delete the DNS zone file on the destination server you should be able to move the account.

Jeff
 
If you first delete the DNS zone file on the destination server you should be able to move the account.

Jeff
Jeff, thanks for your answer. I know, but if account or a few accounts have for example 400 domains it will be troublesome to check and delete every domain.
 
You can create a script to automate it. If the zone file exists on the destination server you may continue to have problems.

Jeff
 
Back
Top