Miss any of our Open RFC calls?Watch the recordings here! »

s3fsync

1.0.1 • Public • Published

s3-folder-sync

Command line wrapper around s3-sync.

Used by LOKE to sync static website content with an S3 bucket.

Usage

s3fsync directory

eg to sync the current directory run:

s3fsync .

This will require the S3 target details to be conigured as environment variables (see below).

Alternatively you can specify the credentials as command line parameters:

s3fsync --key={yourawskey} --secret={yourawssecret} --bucket={yourawsbucket} --region={yourbucketregion}

If it needs to be synced with a subfolder in the bucket use the prefix argument that ends in a trailing /:

s3fsync --prefix=subfolder/ .

Enironment Variables

Instead of specifying via command line, you may specify the S3 target using the following environment variables:

  • AWS_ACCESS_KEY = --key
  • AWS_SECRET_KEY = --secret
  • S3_BUCKET = --bucket
  • S3_REGION = --region
  • S3_PREFIX = --prefix

TODO

More docs, commandline help, file and folder exclusion.

Install

npm i s3fsync

DownloadsWeekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • avatar
  • avatar