Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support --include/--exclude #88

Open
jimmywan opened this issue Nov 4, 2016 · 4 comments
Open

Support --include/--exclude #88

jimmywan opened this issue Nov 4, 2016 · 4 comments

Comments

@jimmywan
Copy link

jimmywan commented Nov 4, 2016

Something I did a lot with s3cmd is to grab partial directory contents over a large tree by using the following:

s3cmd sync <src> <dst> --exclude '*' --include 'foo/bar/*/*/*.log'

Would be nice to have some way to do this. Seems like the only way to do this with s4cmd is to ls them all and try to copy them 1 by 1, but I'd have to manually compute the target path/folder for every one.

@pako-pl
Copy link

pako-pl commented Nov 6, 2016

+1

@rprieto
Copy link

rprieto commented Mar 19, 2017

Another use case when running on macOS is s3cmd sync [....] --exclude "._*" which ignores all metadata files OSX creates on non-HFS drives.

I can't think of any workaround to ignore these on s4cmd.

@ghost
Copy link

ghost commented Jun 25, 2019

@rprieto did this request move forward?

Eichhorst added a commit to Eichhorst/s4cmd that referenced this issue Jul 1, 2019
@Eichhorst
Copy link

Eichhorst commented Jul 1, 2019

I implemented the possibility of (multiple) --exclude patterns for local src files in dsync: #159
Unfortunately pull requests don't seem to be processed by the maintainer :/

If you are interested, you can download the fixed version from my fork: https://github.com/Eichhorst/s4cmd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants