0.2.0 • Published 8 years ago

cloudsync v0.2.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

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"
  }
}
0.2.0

8 years ago

0.1.8

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.0.2

9 years ago

0.0.1

9 years ago