Web Hosting Talk







View Full Version : Transfer Accounts from Server to Server


mercury
11-14-2001, 06:08 PM
What is the best way to transfer accounts from one server to another server?
Is is possible to transfer the etired /home directory from server to server:
E.g. tar -zcf /home/accounts.tgz /home/accounts (or putting in another directory).
and then get it from the other server (wget) and then
tar -xzf account.tgz from root ?
Can this work? :homer:
I think whit wget i need to pint to an account (wget http://domain.com/accounts.tgz )

Have anyone a better solution?

thanks

archangel777
11-14-2001, 10:23 PM
That works... but I like to do it by sftp. It's more secure.

sftp domain.com
login name:
pass:

get (or put) filename.tar.gz

exit

Synergy
11-14-2001, 11:19 PM
If its moving individual accounts (highly recommended):

Login as ROOT: (Assuming this is a CPANEL Server)

CD /HOME/USER

tar -czf move.tar.gz * (you can put public_html)

ftp IP (for the new server, please create the account at the new machine via WHM first)

put move.tar.gz

now telnet/ssh to the new machine (root)

cd /home/user

tar -xzvf move.tar.gz

:::THIS PART IS IMPORTANT::::
make sure the bash say /home/user....

chown user:user *

chown user.mail mail

cd ./mail

(if there is a inbox then do the next step)

chown username.email inbox

I hope this helps....