
|
View Full Version : Moving a big site off a server
Ok, need some help...
I need to move one of my own sites from an old host to my dedicated server...
My site is around 1gb big.
Old host specs.....I have ssh but its jailed, the /tmp directory is only 225mb big (so using whm/cpanel cpmove is out of the question)
new server.....well i have root, so anything.
Now how do i move a site of this site of this size, and still perserve all the files, mysql, emails, etc....???
Thanks for the help!
azizny 11-11-2004, 07:13 PM I would do it manually.
FTP the site down, then up.
Copy databases.
save email files (i dont know how thou).
Peace,
kloch 11-11-2004, 07:44 PM Originally posted by WFWH
Ok, need some help...
I need to move one of my own sites from an old host to my dedicated server...
My site is around 1gb big.
Old host specs.....I have ssh but its jailed, the /tmp directory is only 225mb big (so using whm/cpanel cpmove is out of the question)
new server.....well i have root, so anything.
Now how do i move a site of this site of this size, and still perserve all the files, mysql, emails, etc....???
Thanks for the help!
on the old server:
cd /
tar cvf - | ssh -l <remoteusername> <remote.host.name> "cd /path/for/temporary/relocation ; tar xpf -"
or if you just want the tar file copied to the new server:
cd /
tar cvf - | ssh -l <remoteusername> <remote.host.name> "dd of=/path/for/tarfile.tar"
or some other variation might work.
Orderous 11-11-2004, 10:30 PM Best way is probably to move it from server to server directly, you should be able to do this through scp, or secure copy.
First, tar.gz your files
tar -cf dump.tar *
gzip dump.tar
This will take some time, as you have a large site. Let it do what it needs to do.
Then, on your dedicated server, as root, cd to your sites root (public_html) or equiv, different for whatever control panel you are running, once there, run this:
scp login@oldhost:/path/to/dump.tar.gz .
Change login with your ssh username at your old host, and also the oldhost to your ip, or any working domain name to that server, the path will need to be changed appropriatly, start with / in mind.. so make it complete.
You will be asked for a password, enter the password for your old host, and then the transfer should start, it will take some time, but is the quickest way, and requires less work over all.
kloch 11-12-2004, 12:16 AM oops, forgot the '.' in the tar comands
cd /
tar cvf - . | ssh -l <remoteusername> <remote.host.name> "cd /path/for/temporary/relocation ; tar xpf -"
or if you just want the tar file copied to the new server:
cd /
tar cvf - . | ssh -l <remoteusername> <remote.host.name> "dd of=/path/for/tarfile.tar"
or some other variation might work.
ok using this command
tar cvf - . | ssh -l <remoteusername> <remote.host.name> "cd /path/for/temporary/relocation ; tar xpf -"
how do you specify the port # for the host?
kloch 11-12-2004, 02:44 AM Originally posted by WFWH
ok using this command
tar cvf - . | ssh -l <remoteusername> <remote.host.name> "cd /path/for/temporary/relocation ; tar xpf -"
how do you specify the port # for the host?
the -p argument to ssh specifies a non-default port. If ssh is listening on port 22 on the new server you shouldn't have to set it.
man ssh for more details.
ok thanks guys, think i got it ;-)
ok, next step, moving the databases? our database is 600mb+ big....includes attachments and such, but we can't upload a downloaded file php won't let you, so how do we move this?
CretaForce 11-12-2004, 07:24 AM You can use mysqldump to create a database backup and then move it to your new server. man mysqldump for more information.
ElementNetwork 11-12-2004, 08:56 AM Alot of ftp clients nowadays also have a built in server-server mode. I know one that I have used recently called CoreFTP which is freeware that does this.
Element, is it similar to flashfxp? If so, both servers have that disabled, I got the files moved, next is moving the databases over.
|