如何随时恢复 ftp 下载?(shell 脚本,wget 选项)? [英] How to resume an ftp download at any point? (shell script, wget option)?
问题描述
我想从 ftp 服务器下载一个 50-100MB 的大文件.在每一点,我都希望能够设置起始"点和我想要的块的长度.我不会将以前的"块保存在本地(即我不能要求程序恢复"下载).
I want to download a huge file from an ftp server in chunks of 50-100MB each. At each point, I want to be able to set the "starting" point and the length of the chunk I want. I won't have the "previous" chunks saved locally (i.e. I can't ask the program to "resume" the download).
最好的方法是什么?我主要使用 wget
,但其他的会更好吗?
What is the best way of going about that? I use wget
mostly, but would something else be better?
我真的对预建/内置功能感兴趣,而不是为此目的使用库...因为 wget
/ftp
(另外,我认为)允许恢复下载,我不知道这是否有问题......(我无法从所有选项中弄清楚!)
I'm really interested in a pre-built/in-build function rather than using a library for this purpose... Since wget
/ftp
(also, I think) allow resumption of downloads, I don't see if that would be problem... (I can't figure out from all the options though!)
我不想将整个大文件保留在我的最后,只是分块处理它......仅供参考 - 我正在查看 重新连接后继续 FTP 下载这似乎很有趣..
I don't want to keep the entire huge file at my end, just process it in chunks... fyi all - I'm having a look at continue FTP download afther reconnect which seems interesting..
推荐答案
我建议使用 libcurl 来自您选择的语言.
I'd recommend interfacing with libcurl from the language of your choice.
这篇关于如何随时恢复 ftp 下载?(shell 脚本,wget 选项)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!