Downloading folders from aws s3, cp or sync?
Downloading folders from aws s3, cp or sync?
Downloading folders from aws s3, cp or sync?
Re: Downloading folders from aws s3, cp or sync?
Using `aws s3 cp` from the [AWS Command-Line Interface (CLI)](http://aws.amazon.com/cli/) will require the `--recursive` parameter to copy multiple files.
```
aws s3 cp --recursive s3://myBucket/dir localdir
```
The `aws s3 sync` command will, by default, copy a whole directory. It will only copy new/modified files.
```
aws s3 sync s3://mybucket/dir localdir
```
Just experiment to get the result you want.
Documentation:
- [cp command](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3/cp.html)
- [sync command](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3/sync.html)
```
aws s3 cp --recursive s3://myBucket/dir localdir
```
The `aws s3 sync` command will, by default, copy a whole directory. It will only copy new/modified files.
```
aws s3 sync s3://mybucket/dir localdir
```
Just experiment to get the result you want.
Documentation:
- [cp command](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3/cp.html)
- [sync command](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3/sync.html)