I want to move around 20Gb of files from dreamhost hosting account(their own control panel) to a cpanel VPS in another data center. 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? Dreamhost will not allow me to compress whole 20GB using tar to a 1 file. so i am looking for a method without compress.
wget -r -l0 ftp://username:password@your-server/path/to/folder/you/want/to/download -r is recursive (all files and directories) -l0 (that is L and zero) tells wget get as many levels of files as possible. By default it will grab 5 levels of folders. Setting it to zero will technically set that to unlimited depth. wget man file http://www.cbi.pku.edu.cn/Doc/CS/wget/man.wget.html
It will show you the status of each file as it goes by. If one fails I believe the entire process will fail. I am not 100% sure as I have never had one fail.
thanks Thinking about this command, the only thing I can think of it not working would be due to permissions. if you have a file on your server that you do not have permissions to read it will error out. For example if something that is chmod 000 a file it will not transfer. Most people do not have any files of this sort so it should not be a problem.
Correct, ensure you have your transfer to maintain permissions and that the master user has full permissions. I personally have a old VPS that I would sudo root to and actually tarball the files with permissions, then from one VPS to the other VPS I would SFTP the data over, that way no local traffic is created on my end, just server to server.