>>
Site Map
>>
Forums
>>
Admin_HostingDomain
Forum module - topics in forum:
Admin_HostingDomain - Các hướng dẫn cài đặt quản lý và mua bán hosting domain, Cấu hình server web
Server-to-server file transfer by ssh
Here is a simple one line method to quickly move files from your old ftp server. You will need to have access to ssh and the wget command on your new server.
You may first want to back up your databases on your old server. You run this step on your old server. If you do not have access to ssh on your old server you can back up your mysql databases using php (shown in another Tip on this page).
mysqldump --user=YourMysqlUser --password=YourMysqlPassword --host=YourMysqlHost YourMysqlDatabase > filename
Then to transfer the files (including the database backup if you made one), from your new server login to ssh and execute this command.
wget -mirror
ftp://username:password@ftpserver.com
where ftpserver.com is your old ftp server (note the : between uername and password)
If you have not used ssh before, you will need a Terminal Application from your local machine. If you are a Windows user the most popular one is PuTTY.
*http://www.chiark.greenend.org.uk/~sgtatham/putty/