Skip to content

aws s3 sync --exclude (still) inconsistent #1588

@drzraf

Description

@drzraf
$ 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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.p2This is a standard priority issues3s3filterss3sync

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions