linux – 如何恢复中断下载自动卷曲?

我正在使用 Linux中的卷曲.我正在ftp服务器下载文件的一部分(使用-r选项),但我的连接不好,它总是中断.我想编写一个脚本,当我再次连接时,它会恢复下载.

我已经使用这个命令,但它不工作:

until curl -r 666-9999 -C - --retry 999 -o "path/to/file" "ftp:/path/to/remote/file"; do :; done

解决方法

wget是为这个用例专门构建的.从手册页:
Wget has been designed for robustness over slow or unstable network connections;
if a download fails due to a network problem,it will keep retrying until the
whole file has been retrieved.  If the server supports regetting,it will
instruct the server to continue the download from where it left off.

wget几乎可以用于所有的Linux发行版 – 它可能已经安装在你的.只需使用wget下载文件,就会重新建立网络连接,直到文件完全传输.

相关文章

1、安装Apache。 1)执行如下命令,安装Apache服务及其扩展包...
一、先说一下用ansible批量采集机器信息的实现办法: 1、先把...
安装配置 1. 安装vsftpd 检查是否安装了vsftpd # rpm -qa | ...
如何抑制stable_secret读取关键的“net.ipv6.conf.all.stabl...
1 删除0字节文件 find -type f -size 0 -exec rm -rf {} ...
## 步骤 1:安装必要的软件包 首先,需要确保系统已安装 `dh...