0.2.0 • Published 10 years ago

cloudsync v0.2.0

Weekly downloads
3
License
MIT
Repository
github
Last release
10 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

10 years ago

0.1.8

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.0.2

11 years ago

0.0.1

11 years ago