有没有办法在使用 s3cmd 时停止/恢复从 AWS S3 下载文件? [英] Is there any way to stop/resume file download from AWS S3 while using s3cmd?

查看:21
本文介绍了有没有办法在使用 s3cmd 时停止/恢复从 AWS S3 下载文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 s3cmd 从 S3 下载一个巨大的文件(大约 20 GB),我希望现在暂停下载,明天再继续.

I'm downloading a huge file from S3 (around 20 GB) using s3cmd and I wish to pause the download right now and resume it again tomorrow.

我已经阅读了 --continue 标志,但我不知道它的用法.例如,下载是否应该以特定方式结束,以便 --continue 标志能够在以后恢复它?或者 --continue 标志是否能够继续下载,无论进程如何停止,无论是键盘中断、意外关闭还是网络错误.

I've read about the --continue flag but I don't know about its usage. As in, should the download be ended in a specific way for the --continue flag to be able to resume it later on? Or will the --continue flag be able to resume download no matter how the process was stopped, regardless if it was a keyboard interrupt, accidental shutdown or network error.

谁能举个例子?

预期用途是使用 get 命令,s3cmd 的版本为 2.0.2.

The intended usage is with the get command and version of s3cmd is 2.0.2.

推荐答案

显然,只需使用 continue 标志即可出色地完成工作.我通过断开网络来结束下载.然后第二天使用 --continue 标志再次开始,它从它离开的地方恢复下载.

Apparently, simply using the continue flag does the job splendidly. I ended the download by disconnecting the network. And then started again the next day using the --continue flag and it resumed the download from where it had left.

这篇关于有没有办法在使用 s3cmd 时停止/恢复从 AWS S3 下载文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆