问题
I am moving servers and our images directory has around 15,000 images (2GB in size) which needs to be moved on to new server.
Images will have a different path on new server so can't just migrate whole CPANEL.
Any easy way to resolve this issue?
Thanks for help in advance.
回答1:
use SFTP from one server to the other http://support.cs.utah.edu/index.php?option=com_content&view=article&id=33&Itemid=59
edit: In answer to yr question below: Don't need local download, sftp is direct server to server. Use sftp from SSH shell on source server like so
$ cd source_directory
$ sftp user@otherserver
Password:
Connected to otherserver
sftp> cd target_directory //this is changing dir on remote server not local
sftp> put filename
or for all files from source dir to target dir
sftp> put *
来源:https://stackoverflow.com/questions/10443458/transferring-large-number-of-files-from-one-server-to-another