Efficient file transfer for QCloud COS.
- Incremental Upload
- Concurrency Support
- Report Sheet
- Enable / Disable / Customize HTTP Cache
$ npm install -g @teambun/coscp$ coscp gen-configAfter generating ~/.coscprc.yml, read instructions in the file, set it properly.
$ coscp source bucket:targetDefault cache policy for development without --cache option:
| File Type / File Name | Expire |
|---|---|
| All | 60 seconds |
Cache policy for production with --cache auto option:
| File Type / File Name | Expire |
|---|---|
| *.html, *.stale.* | 60 seconds |
| Others | 1 year |
Customize cache policy with --cache option, such as:
--cache 0: disable cache.--cache 3600: set cache time to 1 hour.
| Argument | Type | Default Value |
|---|---|---|
sourceDirectory |
String |
NA |
targetDirectory |
String |
NA |
concurrency |
Number |
5 |
config |
Object{ AppId, SecretId, SecretKey, Bucket, Region } |
NA |
interactive |
Boolean |
true |
cache |
Number |
NA |
- multiple file transfer https://stackoverflow.com/a/21110306/1793548
- download
coscp bucket:files local
MIT