scp的替代方案,通过打开并行连接在linux机器之间传输文件
是否有 scp 的替代方案,通过打开并行连接将大文件从一台计算机传输到另一台计算机,并且还能够暂停和恢复下载。
请不要将此信息转移到 severfault.com。我不是系统管理员。我是一名开发人员,试图在备份主机和服务器之间传输过去的数据库转储。
谢谢
Is there an alternative to scp, to transfer a large file from one machine to another machine by opening parallel connections and also able to pause and resume the download.
Please don't transfer this to severfault.com. I am not a system administrator. I am a developer trying to transfer past database dumps between backup hosts and servers.
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您可以尝试使用 split(1) 将文件分开,然后并行 scp 各个部分。然后可以使用“cat”将该文件组合成目标计算机上的单个文件。
You could try using split(1) to break the file apart and then scp the pieces in parallel. The file could then be combined into a single file on the destination machine with 'cat'.
看一下 rsync 看看它是否能满足您的需求。
问题的正确放置不是基于您的角色,而是基于问题的类型。由于这与严格的编程无关,因此很可能会被迁移。
Take a look at rsync to see if it will meet your needs.
The correct placement of questions is not based on your role, but on the type of question. Since this one is not strictly programming related it is likely that it will be migrated.
与 Mike K 的回答类似,请查看 https://code.google.com/p/scp- tsunami/ - 它处理分割文件,启动几个 scp 进程来复制各个部分,然后再次加入它们...它还可以复制到多个主机...
将文件分割成 10MB 块并使用复制它们9个scp进程...
Similar to Mike K's answer, check out https://code.google.com/p/scp-tsunami/ - it handles splitting the file, starting several scp processes to copy the parts and then joins them again...it can also copy to multiple hosts...
That splits the file into 10MB chunks and copies them using 9 scp processes...
您正在使用的程序是lftp。它使用 pget 命令支持 sftp 和并行传输。它可以在 Ubuntu 下使用(sudo apt-get install lftp),您可以在这里阅读它的评论:
http://www.cyberciti.biz/tips/linux-unix-download-accelerator.html
The program you are after is lftp. It supports sftp and parallel transfers using its pget command. It is available under Ubuntu (sudo apt-get install lftp) and you can read a review of it here:
http://www.cyberciti.biz/tips/linux-unix-download-accelerator.html