cloudsync
v0.2.0
Published
Sync files to cloud storage services
Downloads
12
Readme
Sync files to Cloud Storage
Install
npm install -g cloudsync
Usage
$ cloudsync <config json file>
$
$ Options:
$
$ -f, --force-upload Upload all files
$ -i, --incremental-mode Only upload new/changed file
NOTE: Currently only support Aliyun(OSS) and AWS(S3) at this time.
Configuration file
create the .cloudsync.json
file in your current working directory.
{
"aliyun-oss": {
"source": "target-files-path",
"dest": "cloud-storage-path",
"accessKeyId": "aliyun-oss-key-id",
"secretAccessKey": "aliyun-oss-access-key",
"endpoint": "http://oss-cn-beijing.aliyuncs.com",
"bucket": "bucket-name"
},
"aws-s3": {
"source": "target-files-path",
"dest": "cloud-storage-path",
"accessKeyId": "aws-s3-key-id",
"secretAccessKey": "aws-s3-access-key",
"region": "us-west-2",
"cacheControl": "max-age:3600",
"bucket": "bucket-name"
}
}