bloomreach / bloomreach/s4cmd

Support --include/--exclude

Open
#88 4 comments 11 reactions 0 assignees View on GitHub
feature-request
Dominant language
Python
Stars
1.4k
Forks
209
PR merge metrics
No merged PRs in 30d

Description

Something I did a lot with s3cmd is to grab partial directory contents over a large tree by using the following:
```
s3cmd sync --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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the sync command entry point and its argument parsing, then inspect how source paths are enumerated and copied. Add include/exclude handling matching the example, and verify that only matching objects are copied to the corresponding destination paths.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, cloud
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.