DirectAdmin to DirectAdmin Migration?

open4biz

Verified User
Joined
Mar 22, 2009
Messages
125
Hi All,

I have DA on my current host and have grown accustomed to it. In a few days I'm going to move to a new host that does not natively offer DA and I will purchase a license for myself. My questions are:

Is there a process for migrating from an old DA installation to a new DA install? Will it capture everything from email addresses, to mail still on the server, to MySQL databases to all the files on the sites? I am trying to anticipate how painful this move could be.

Also, on the old host, I was on CentOS 5.x 32-bit and planned to move to CentOS 5.x 64-bit. Will that throw a monkeywrench in my plans at all?

Thank you to advance for any help!

Ansel
 
Hi,

once you installed the directadmin on new server will be pretty much easy restore all admin configuration (just the directadmin panel one ofc) and all resellers/users.

You will need to use Admin Backup in Administration Level.

This will create 1 file tar.gz per each admin/reseller/user and will save it or in a local path or in a ftp server (you should let it send automatically to the new one).

On the new server you will need to create the folder /home/admin/admin_backups and save all the backup you wanna restore in this folder.

Once all files are there, go to admin backup in directadmin and in the end of the page you will find the restore funciont.

I suggest you to restore first the admin user alone, once is done, restore all the rest of admin/resellers/user remaining.

If the IP is changed pay attention on the Step2 where you got two option:

1- keep the ip present in the backup
2- change the ip to

If the ip is changed you must select the second option ofc, so, all the httpd.conf and dns will be re-generated with new ip automatically.

If you facing problem or need more information feel free to ask.

You can find all the info here aswell: http://www.site-helper.com/

Best regards
 
Hi Sellerone,

Thank you for your reply.

Two more questions:

1. Will it make a difference if I'm moving from 32-bit to 64-bit CentOS 5.x?

2. If I have a user who access was increased from normal to reseller, is there a way to roll it back? Or will I have to manually add that user to the new install?

I know the IP's will change, as I am migrating from one hosting company to another. Thank you very much for the head's up!

Thanks again,

Ansel
 
Hi again,

first at all, no problem, i try to help when i can :)

For your first question i made same step from Debian 32bit to CentOS 64Bit and worked perfectly!

For the second question aswell, all backup keep the user settings, so, if a user have no a standard package but you added bandwidht, disk space or whatever, on restore you will have exactly the same stuffs.

My concern wasnt about ip change but just to remember you to select the right "choose" on restore process :)

Regards
 
2. If I have a user who access was increased from normal to reseller, is there a way to roll it back? Or will I have to manually add that user to the new install?

Hello,

Yes, sure.

Code:
# /usr/local/directadmin/scripts/reseller_to_user.sh <user>

# This script is written by Martynas Bendorius and DirectAdmin
# It is used to convert reseller to user
# Official DirectAdmin webpage: http://www.directadmin.com
# Usage:
# ./reseller_to_user.sh <user>
 
Hello,

Yes, sure.

Code:
# /usr/local/directadmin/scripts/reseller_to_user.sh <user>

# This script is written by Martynas Bendorius and DirectAdmin
# It is used to convert reseller to user
# Official DirectAdmin webpage: http://www.directadmin.com
# Usage:
# ./reseller_to_user.sh <user>

Excellent!

Quick question: if a reseller account I want to convert back has users under their account, do I have to move those users back to admin first or will it do it automatically?

Thanks!

Ansel
 
I've scanned the script, no it won't change creator for the reseller's users. You should move them to another reseller, before converting reseller to user. See:

Code:
/usr/local/directadmin/scripts/move_user_to_reseller.sh <user> <oldreseller> <newreseller>

# This script is written by Martynas Bendorius and DirectAdmin
# It is used to move user from one reseller to another
 
One more thing:

Email delivered after the backup is done may remain on the old server. What we do is after we've given enough time so we know all new mail is being delivered to the new server, we backup and restore both the imap and Maildir mail directory trees in /home/USERNAME, manually for each user, first creating tarball on the old server and then restoring it on the new server. This might create duplicates under certain conditions, but won't lose any email.

You don't need to do this manually; you can script it.

Jeff
 
Hi All,

The migration went off without much of a hitch, thanks to you two.

Thanks again!

Ansel
 
Back
Top