Current time: 11-23-2024, 11:33 AM Hello There, Guest! (LoginRegister)


Post Reply 
Moving user accounts between servers
Author Message
hjansen Offline


Posts: 3
Joined: May 2007
Reputation: 0
Post: #8
RE: Moving user accounts between servers
Here are just my 2 cents because im moving a lot of user accounts from confixx to vhcs which should be still very similar ...

- Create the user account on the new server ...
- ssh login at the old server
- copy the users htdocs folder via scp to the new server
( scp -r * username@hostname:/var/www/virtual/domainname/htdocs/ )

- create the e-mail accounts at the new server like they are at the old server
- for the usersnames and passwords u can just look inside the database of the old server they are all inside here.
- ssh login old server
- copy the maildir from the old to the new server via scp
( /var/mail/virtual/domainname/mailboxname/[cur|new|tmp] )
sometimes there are some wired named files that scp is not cabable to copy directly. just tar the hole stuff then and copy the tar file to the new server

- after that you have to copy the database of the user. i prefer doing that with phpMyAdmin but u could also use the mysql command line tool via saving an extract of the databases copy them via scp to the new server and importing them there ( dont forget to create the database at the new server )


while thinking about it, it should be not a big deal to write a small perl script that is doing that by itself. i will think about it when there is a stable ispCP that i can play arround with ...
(This post was last modified: 09-02-2007 06:21 PM by hjansen.)
09-02-2007 06:20 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Moving user accounts between servers - hjansen - 09-02-2007 06:20 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)