Migration from another harddrive

Henrik

Verified User
Joined
Mar 14, 2008
Messages
80
Hello,


I had a server crash on me and need to migrate the data for the users from a secondary harddrive mounted on the new machine.

What is the best way to go at it? What should I think about in terms of email (especially with aliases), mysql databases, named (well, dns settings) etc?

Martynas gave the pointer of the permission reset, so Id' guess this part is covered for the home directories, but what about the files that are relevant to above mentioned email, databases, named (dns settings) etc?

Ideas, experiences and tips?


Thank you in advance :)
 
How does direct admin know which domains belongs to which user? Is it enough to move over the named.db files (the whole /var/named) for the domains on the old machine, and then restart named after moving over the /home data files for the users?

The machine that is the target will have the same set IP-addresses, so it would be a matter of moving over the data straight up, basically.

What about the exim aliases for usermail? Are they read from /etc/exim/virtual and then presented inside directadmin?

What should I think about, if I move over data without having access to directadmin's own backup files?
 
You don't say what's on the secondary harddrive and how you made it, so it's really impossible to tell you how to restore from it.

Generically, you'd create the new users on the new system, and move the data manually to where it belongs.

Jeff
 
Oh sorry, it is basically a whole - until then - working system. With dns settings, home dir, etc.

I'm having thoughts about the exim aliases and bind databases mostly, the rest should not be a problem.

If I move a home directory from the backup to the target, will the domains show as "belonging to the user" it is merged under?

Thanks for replying! :)
 
The short answer is if you're server OS version and DirectAdmin version are the same you can just copy over everything. However if things break that isn't my fault.

What you have, effectively, is similar to a system backup or sysbk backup; you might want to search these forums.

To be a bit more specific, no, moving the /home/* directories will NOT set anything in DirectAdmin. I wish I had a few hours to figure out exactly what you need to restore, but I know there are posts on these forums which give the information.

Generally DirectAdmin stuff is in:

/etc/virtual
/usr/local/directadmin/

and some other places as well.

Jeff
 
Hello,


The server OS is CentOS 4.7 on the old and CentOS 5.2 on the new.

Regarding making ownerships to domains etc, I reckon that I can restore a lot of things manually, though it'd be preferred to have it done more automagically.

I will search too, I wanted to ask if there are some immediate pointers to take into account first though. (Thank you for taking the time to respond.)
 
There are many differences between CentOS 4.7 and CentOS 5.2, but if you only copy over DirectAdmin stuff you should be okay. However do NOT copy over either the DirectAdmin binary or it's key file, or you'll have to download the key from DirectAdmin servers again.

It's been years since I restored DirectAdmin from sysbk, and I really don't have more information other than what I gave you; perhaps others will respond.

Jeff
 
Back
Top