aws / aws/aws-cli

aws s3 sync --exclude (still) inconsistent

Open
#1,588 18 comments 13 reactions 0 assignees View on GitHub
bug p2 s3 s3filters s3sync
Dominant language
Python
Stars
17.3k
Forks
4.6k
Avg merge
1d 2h
Merged PRs (30d)
13

Description

```
$ cd ~
$ aws s3 sync / s3://bucket/test/ --exclude "bin/*" --dryrun
$ aws s3 sync / s3://bucket/test/ --exclude "/bin/*" --dryrun
$ aws s3 sync / s3://bucket/test/ --exclude "./bin/*" --dryrun
$ aws s3 sync / s3://bucket/test/ --exclude "/bin/*" --dryrun
$ cd /
$ aws s3 sync / s3://bucket/test/ --exclude "bin/*" --dryrun
$ aws s3 sync / s3://bucket/test/ --exclude "/bin/*" --dryrun
$ aws s3 sync / s3://bucket/test/ --exclude "./bin/*" --dryrun
$ aws s3 sync / s3://bucket/test/ --exclude "/bin/*" --dryrun
```

None of the above commands (whatever cwd is) will exclude /bin from being synch'ed
Using `"*/bin/*"` _would_ work, but it's unwanted since it would exclude other subdirectories like `home/foo/comp/bin/`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.