Upload contents of given folder to given s3 path, recursively. If a file already exists, do not upload it.
npm install s3-upload-missing``Shovel this folder's contents, recursively, up to mybucket.
If a file is already there, it is not sent again
s3-upload-missing . mybucketname .
You must populate
~/.aws/credentials with your key and secret, like this:`
[default]aws_access_key_id = xxx
aws_secret_access_key = yyyyyy
`TODO: support command line arguments for these as well.
"Why not use s3cmd?"
s3cmd works fine, but we have a peculiar need to successfully upload files with permissions 000 and give them the private acl on s3 (the --chmod-if-needed option). This is very useful when transitioning from local files to s3 with uploadfs. Also, s3-upload-missing` may be faster.