README
¶
resume
A resumable multipart HTTP downloader.
Install
go install github.com/b97tsk/resume@latest
Usage
### Download with default options.
$ resume http://...
### Download with a specified output file.
$ resume -o dl.zip http://...
### Download with max parallel downloads set to 9.
$ resume -c9 http://...
### Download with a config file (see below).
$ resume -f resume.yaml
### Download with default config file (i.e. resume.yaml) found in current directory.
$ resume
### Print config to standard output.
$ resume config
### Print status to standard output.
$ resume status
### Stream to standard output while downloading.
$ resume stream | mpv -
For a list of command-line flags, type resume --help.
Config File
By default, a file named resume.yaml is read when the program starts, if it exists.
You can specify the path of this config file by using command-line flag -f.
A config file is an YAML document that can specify following options:
allocalloc disk space before the first write.autoremoveauto remove .resume file after successfully verified (Default: true).connectionsmaximum number of parallel downloads (Default: 1).cookiecookie file. The file format is Netscape format.disable-keep-alivesdisable HTTP keep alives, one request per connection.ignore-errorsignore non-fatal errors.intervalrequest interval (Default: 2s).keep-alivekeep-alive duration (Default: 30s).limit-ratelimit download rate to this value (B/s).listenHTTP listen address for remote control.max-splitmaximum split size (MiB).min-desired-rateminimum desired download rate (B/s).min-splitminimum split size (MiB).outputoutput file.parallelmaximum number of parallel requests (Default: =connections).proxya shorthand for setting http(s)_proxy environment variables.rangerequest range (MiB).read-timeoutread timeout (Default: 30s).refererreferer url.response-header-timeoutresponse header timeout (Default: 10s).skip-etagskip unreliable ETag field or not.skip-last-modifiedskip unreliable Last-Modified field or not.stream-cachestream cache size (MiB).stream-ratemaximum number of stream rate (MiB/s) (Default: 12).sync-periodsync-to-disk period (Default: 10m).timeouttimeout for all, low priority (Default: 30s).tls-handshake-timeouttls handshake timeout (Default: 10s).truncatetruncate output file before the first write.urlthe URL to download.user-agentuser agent.verbosewrite additional information to stderr.verifyverify output file after download completes (Default: true).
Note that command-line arguments take precedence over this config file.
Global Config File
In addition to this config file (resume.yaml), the program also tries to read
a global config file named .resumerc located at your home directory if it exists.
Options specified by this global config file have the lowest priority and therefore
can be overrided by resume.yaml or command-line arguments. The file format is the same.
Documentation
¶
There is no documentation for this package.