Changing 100 users from 1 server to other

chiptecmm.com

Verified User
Joined
Jun 2, 2004
Messages
18
Hi there

Did anyone have already made a change of server to a big amount of accounts ?

Is there any hard issue on that or is just some copy files from 1 server to another, is any automatic way to doit?

Raegards and mery christmas

Jose Silva
 
I've migrated a server to another server/OS.

I did the following:

Old server:

- Scripts reads all users on server (DA API) So it can create accounts through API
- Tarred up /usr/local/directadmin/data/users/
- From all reseller levels created "user backups" and backup of resellers

New server:

- Created a script that (re)creates all users. (DA API)
- Overwritten /usr/local/directadmin/data/users/
- Restored al user backups

And that was it. Some files didn't got backuped completly, about (5%, mostly DB's)


I'm sorry, but can't give you the scripts as it is specifacaly written for that server. But all you really need are the user backups and a way to firstly create ALL accounts, as the user restore doesn't create the accounts.

You could get some errors when restoring user files. (Permissions on /etc/virtual/passwd) (some bug or something), but deleting the user and than creating it again through the panel should fix it. Otherwise just overwrite that specific user from the old files.

I've done all this on ONE server, put HD in new one as second and than installed everything and migrated as described above.

(This is how I did it, not sure if it works for everyone) If you don't change OS and Major Hardware, you can use www.mondorescue.org
 
We've moved all users from one server to another using sysbk. There are some things the default setup does wrong and I'm still trying to find the time to write up the changes which should be made.

At one point DA said they were working on making some changes to sysbk.

I'll ask them if it's been done or if it's something they're still working on.

If not, I'll try to get it done early in the new year.

One of my clients (he's not reachable now as he's away for the holidays) has moved entire reseller accounts successfully, with all the users under them as well.

Jeff
 
My largest move was from a reseller account to a dedicated server, I had to move about 80 accounts with 240 domains or something.

Just note the backups created aren't always perfect, had to do 3 domains for 2 times before it worked, and 2 users entirely manually due to the fact it simpely wouldn't work for some reason. Didn't examine it later, was just trying to minimize downtime everywhere...

(Both servers are DA)
 
I am soon having to move server's issues I can see coming are remaking accounts with same password's (how to move passwords???)

And mysql usernames/passwords.
 
All three systems, system backup, reseller backup, and user backup, should move all necessary info.

Jeff
 
If you have a SSH access on both machines, you can use lftp command and move all your customers data using a server to server connection. This will be at least 100 time faster than your regular FTP connection.

However, you need to update manualy all the owner. Because all the files and folders transfered will belong to admin:admin
 
If you use tar on both ends of the connection you can maintain your ownerships and permissions.

As long as the usernames to UID relationship is the same on both servers.

Jeff
 
I used the reseller, backup and restore features, unlike the admin backup section this feature is complete and works very well. :)
 
Back
Top