Commit Graph

3 Commits

Author SHA1 Message Date
Daniel Poelzleithner
5096f27bbd Fix more warnings from static code analysis 2022-11-11 15:27:21 +01:00
Daniel Miranda
62093f609f
Add authorship information to S3 example 2017-08-22 10:36:13 -03:00
Daniel Miranda
1dfff8d13a
Add example config for syncing with an AWS S3 bucket
It requires the official AWS CLI to be available, and that credentials
be set up through some external method, such as environment variables,
IAM profiles, the AWS SDK configuratin.

The AWS CLI sync exclude rules are not as powerful as the ones supported by
lsyncd. Hence, some of the do not translate perfectly. For example, '*'
(asterisk) matches slashes, while it does not in lsyncd. Hence it is a good
idea to only use exclude patterns for full directories, either by using a
trailing / (slash) or ** (double asterisk), as those will be correctly
translated.

An initialSync options is provided as a convenience, since it's not easy to
make sure exclusion rules match when doing it manually. It will *pull* from
the target bucket to the local dir (the opposite of the regular behavior)
then exit immediately.
2017-08-21 23:19:08 -03:00