s3-sync-client
s3-sync-client copied to clipboard
AWS CLI s3 sync command for Node.js
```javascript // aws s3 sync --dryrun --delete --exclude 'excl/*' /path/to/local/dir s3://my-target-bucket // Note: The results of the above command and the following code are different import { S3Client } from...
For example, I want to sync local `C:/Users/xxx/Musics` from `s3://bucket/aaa/bbb/Musics`. Expected behavior: `s3://bucket/aaa/bbb/Musics/123.mp3` => `C:/Users/xxx/Musics/123.mp3`. Actual behavior: `s3://bucket/aaa/bbb/Musics/123.mp3` => `C:/Users/xxx/Musics/aaa/bbb/Musics/123.mp3`. To avoid this, I have to use `relocations: [['aaa/bbb', '']]`.
E.g. maybe TransferMonitor can do something like: ```js this.emit('ignore', filename) this.emit('start', filename) this.emit('done', filename) ```
### Feature request: To be able to relocate objects on sync from bucket > local, based on an external DB Either of the following would be useful: - The ability...
Super minor thing, but I got a bit confused by an error in the example code due missing brackets to make the import of the `S3Client` a named one. Example...
I'm using this to sync files from my local server to s3 compatible storage, however I keep getting crashes without any errors. I'm running it on node 21 in a...
Hello and thanks for this library. I am trying to use the abort controller, but it does not seems to work. ``` Ubuntu: 20.4 Node: v18.15.0 "s3-sync-client": "^4.3.1" "@aws-sdk/abort-controller": "^3.374.0"...
We use [server side encryption with customer keys](https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerSideEncryptionCustomerKeys.html) and therefore set the `SSECustomerAlgorithm` and `SSECustomerKey` in the `commandInput` argument. This works great with everything except multipart uploads. This is caused...
I ran `npm install` and got the following message. > npm WARN deprecated @aws-sdk/[email protected]: This package has moved to @smithy/abort-controller ``` $ npm ls @smithy/abort-controller └─┬ [email protected] ├─┬ @aws-sdk/[email protected] │...