Skip to content

msudgh/sync-cloud-storage

Repository files navigation

Sync Cloud Storage

NPM Pipeline Status Codecov Status License

A simple way to sync folders & files between a remote machine and a cloud provider's storage.

Available for following cloud frameworks:

Note: This plugin is still in development and may not be stable. Use with caution.

Installation

  1. ni: ni sync-cloud-storage -D
  2. npm: npm i sync-cloud-storage -D
  3. yarn: yarn add sync-cloud-storage -D
  4. pnpm: pnpm add sync-cloud-storage -D

Why

  • Uses the latest official cloud provider's SDK.
  • Sync multiple storages at once.
  • Sync tags and metadata of each storage.

Usage

Serverless

plugins:
  - sync-cloud-storage

custom:
  syncCloudStorage:
    - name: my-bucket
      localPath: ./assets
      actions:
        - upload
        - delete
      prefix: assets
      acl: public-read
      metadata:
        foo: bar
        bar: foo