透過 wget 進行伺服器到伺服器檔案傳輸

透過 wget 進行伺服器到伺服器檔案傳輸

I have a dedicated server in Germany with 120GB data, since I have bought a new dedicated server in US, I would like to transfer all the files to new server through FTPconnection, to achieve this I'm able using the following wgetcommand in my new伺服器:

nohup wget -m --user=myusername --password=mypassowrd ftp://ftp.mysite.xyz > wget_backup_transfer_log.log 2>&1 &

我想知道是否有更好的方法來做到這一點,而上述命令對於這些巨大的文件資料是否穩定?

提前致謝...

PS 兩台伺服器都運行 CentOS 6.5

答案1

使用 tmux/Screen 將是比nohup.如果連線鬆動,您可以隨時重新連接終端。

對於文件傳輸本身,我建議使用SSH+Rsync。 Rsync可以恢復檔案傳輸,而且它也會被加密。

嘗試類似的方法:rsync -av --partial server1:/my/dir server2:/this/dir

相關內容