
|
View Full Version : moving of files from server to server
cloede 12-08-2001, 08:15 PM we are going to move our clients (about 600) to another server. we're using redhat, webhostmanger and cpanel on both servers. there are no clients on the target host. the nameserver is already working on the new server. we want to keep all settings, users, quotas, ftp, cpanel settings, userdata, mysql dbs, ... we'll be able to move all the data in the home dir in a few hours (so the file transfer is not the problem). the accounts are ip based now and will be name based when they are moved (we'll change all ns entries and httpd.conf, ... by script).
Our question is, if anybody out there has some hints/experience doing this? Or maybe, somebody has even got a list with all conf files / data dirs we should move. Any hints in connection with changing from ip to name based accounts?
regards,
cloede
clocker1996 12-08-2001, 09:03 PM With the money you make off the 600 clients i suggest you hire someone who really knows what they are doing when it comes to server moves like that.
Jedito 12-08-2001, 09:58 PM Do a search in this forum.
I remember that CRego gives a list of what files you must move on a thread here.
CRego3D 12-08-2001, 10:02 PM Hi Cloede
It is really easy to move from one cpanel server to another .. here is the list again :)
expecially if you kepign the same IP's .. it's really a no sweat .. I usually do these moves in 3 hours by myself :)
Best way of movign files will indeed be using SFTP as root.
---
Ok, before you move anything else, move this file
/etc/groups
or when you move your user files (/home) the ownerships will be lost
then..
/etc/domainalias
/etc/domainips
- edit the ips
/etc/localdomains
/etc/named.conf
- if moving to a 7.1 box , remember to copy the 'key' entry from the 7.1 file into the old 6.2 file and add this entry as well:
--------------
controls {
inet 127.0.0.1 allow { localhost; } keys { "key"; };
};
--------------
/etc/shadow
- This will revert your root password to the same root passwd as the old box
/etc/passwd
/etc/proftpd.conf
- edit the ips
/etc/proftpd (dir)
/etc/userdomains
/etc/valiases (dir)
/etc/vfilters (dir)
/etc/ssl (dir or sometimes a symlink to /usr/local/ssl)
/var/cpanel (dir)
/var/lib/mysql
- stop mysql before copy this one, and restart it after, the mysql root password will be reverted to the old one, so it's a good idea to edit /root/.my.cnf and either enter the old root password, or go to mysql and enter the NEW mysql root password ( mysqladmin -uroot -p<old-password> password <new-password> ), this needs to be done or a mysql error will occur on the user's CPanel
/var/named
/var/spool/cron
/usr/local/ssl (dir)
/usr/local/apache/conf/httpd.conf
- edit the ip's, here the best bet is to bring the file into a text editor, get rid of all the text on the old file up to the FIRST VirtualHost entry (right after <IfDefine SSL> and replace it with the text from the new httpd.conf .. I usually just do a copy/paste in my favorite text editor, if you don't do this, most likely apache will fail.
/usr/local/cpanel/3rdparty/mailman/lists (dir)
/usr/local/cpanel/3rdparty/mailman/archives (dir)
/usr/local/cpanel/base/frontend (here just grab any custom skins you might have created .. otherwise, leave it behind)
/usr/local/frontpage (dir)
- inside this dir there is a symlink named 'currentversion@' .. do not copy that, also no need to copy the directory "version4.0" inside that as well
and ....
/home (dir)
restart all services, and you should be all set
if moving to a new machine, but keeping the same IP's .. you will need /usr/ips as well
hope this helps
cheers
Carlos
sqposter 12-10-2001, 04:52 AM Originally posted by CRego3D
Hi Cloede
It is really easy to move from one cpanel server to another .. here is the list again :)
expecially if you kepign the same IP's .. it's really a no sweat .. I usually do these moves in 3 hours by myself :)
Best way of movign files will indeed be using SFTP as root.
hope this helps
cheers
Carlos
This was real cool of you to post.
Thanks
p.s. If i was to nervious could I hire you for the move ???
-Sqposter / Michael
WildWayz 01-06-2002, 01:06 PM CRego3D - u are a fecking top bloke, and if u come to the UK, I will buy u a beer.
James
WildWayz 01-06-2002, 01:09 PM How about if u are moving to a new server and the IPs are different?
James
Justin S 01-06-2002, 09:28 PM Then you have go through all the files with IPs and change them manually. Here are the files you need to change...
/etc/domainips
/etc/proftpd.conf
/usr/local/apache/conf/httpd.conf
AlaskanWolf 01-21-2002, 09:05 PM followed the instructions above and got the following errors so far (without moving /home yet)
1. sites do not show up in WHM List Accounts but everywhere like modify acount, what did we miss?
2. starting apache, we get
[Mon Jan 21 10:14:46 2002] [error] Cannot resolve host name --- ignoring!
Suggestions?
AlaskanWolf 01-21-2002, 09:34 PM there has to be some things majorly wrong with this list, i followed it step by step and moved all the files folders etc...
list accts doesnt show anything
scripts like update ip address doesnt show any of the sites moved
scripts like /scripts/resetquotas doesnt see any of the sites moved.
created 2 dummy sites and it seemed to overwrite the scripts that we already moved over
am i missing something here??? or what.
AlaskanWolf,
How did it go? What was the problem? We are going to move a couple of servers soon and would like to know how it went. Is there something missing in Carlos' list?
CRego3D 01-28-2002, 09:29 PM After you move al the customers, there will be no account in the "list" .. what you do is create a NEW account, and then delete it .. presto, all your accounts are listed now ;)
just moved another server last night using my list, not a hitch (except I didn't realise there was a double entry on named.conf that prevented it from starting)
cheers
Thanks Carlos. I guess you are the CPanel moving expert ;)
CRego3D 01-28-2002, 09:39 PM Originally posted by bert
Thanks Carlos. I guess you are the CPanel moving expert ;)
hehe . I guess :D
Alareach 01-29-2002, 02:53 PM it appears a move feature was added to WHM early this morning, but it didn't work when I tested it. I am sure it will work soon.
|