Portal Home > Knowledgebase > Articles Database > Moving servers


Moving servers




Posted by sameera, 10-05-2007, 07:16 AM
I want to move around 20Gb of files from dreamhost hosting account with custom control panel to a cpanel VPS in another datacenter. Is there anyway of transferring all the files to new host without downloading and uploading to the new host. Coz i have normal DSL and 20 GB downloading and uploading can take years. There are some forum files CHMOD to specific values if you can transfer them without resetting them in new host also cool. Can anyone give help? both servers have SSH and FTP I get to know you can rar them and Wget it from the VPS. But thats file by file. Is there a way to move complete directory with wget command? Or any other reliable way?

Posted by david510, 10-05-2007, 08:07 AM
Compress the directory to .tar.gz format and wget it. After that untar it to get the whole directory. To compress. tar -czf directory.tar.gz /path/to/directory To untar tar -zxf directory.tar.gz

Posted by sameera, 10-05-2007, 08:36 AM
thanks for your reply bro. I am hosted in dreamhost shared hosting so compressing such big directory may cause trouble and time outs? or process kill? If it never worked they show like fail or any errors?

Posted by Ashley Merrick, 10-05-2007, 08:53 AM
If you have a shared account then you may be able to ask DreamHost to run the command in shell for you and create the tar.gz file for you to download.

Posted by sameera, 10-05-2007, 09:22 AM
Thanks for your reply. But is there noway to move whole directory without compress it? I mean from a command? coz dreamhost always saying i am using lot of resources. So they will also say cant compress such huge directory and it'll use lot of server resources.

Posted by husaren, 10-05-2007, 09:34 AM
Rsync it or some sort of tar | ssh user@remotehost:/dir

Posted by sameera, 10-05-2007, 10:02 AM
thanks for your reply. Can you please explain more. I am not really familiar with commands and usage

Posted by david510, 10-05-2007, 10:48 AM
To copy the directory to the new server from old server, from new server type the following command. It prompts old server user password. Supply it. scp -rp user@old_server_IP:/path/to/dir /path/to/dir/in/new/server/

Posted by Ashley Merrick, 10-05-2007, 10:50 AM
Does DreamHost supply SSH access?

Posted by sameera, 10-05-2007, 10:54 AM
thanks bro. It will show errors if something went wrong in SSH right? Will tell when its done too right?

Posted by sameera, 10-05-2007, 10:55 AM
yes it has



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
FeaturePrice (Views: 518)