-
-
Notifications
You must be signed in to change notification settings - Fork 905
-
-
Notifications
You must be signed in to change notification settings - Fork 905
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
Regression: --exclude '*.*' --rinclude '^one_file$' excludes all files #212
Comments
I'm having an issue with 1.5.0-beta1 where |
yes. Excludes are processed before includes. Try using --files-from= instead? On Sat, Dec 28, 2013 at 5:23 PM, Rob Smith notifications@github.com wrote:
|
|
I reviewed the code path for this. --exclude="*" --include="something" is supposed to work. That it's not is indeed a bug that needs further debugging. |
I found that if I commented out "dirs.remove(x)" in "handle_exclude_include_walk" in "FileList.py" the --include option works, hopefully correctly. |
Right. But then you haven't actually excluded any directories in your walk. I need to think about this code path a little bit more. I'd like it to On Thu, Jan 16, 2014 at 12:48 PM, ltmitch49 notifications@github.comwrote:
|
Please try upstream master branch now. I reworked how excludes and includes are processed (and where). From my testing, doing a --exclude=* --include=*.jpg does indeed work now. To exclude a directory, be sure you have --exclude=somedir/ (trailing forward slash). |
Hello Matt, I finally got to test the latest s3cmd 1.5.0-beta1 and unfortunately I got the following error on a backup that works fine on an older version (with my simplistic solution to the --exclude --include problem). Here is the error I am getting: user1@PC6:~$ sudo ./s3bkuptest.sh !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Invoked as: /home/user1/Downloads/s3cmd/s3cmd --dry-run --config=/home/user1/.s3cfg --no-delete-removed --preserve --exclude=* --include-from=/home/user1/s3bkuptest.include sync /home/user1/testbk01 s3://testbk01.ltmProblem: NameError: global name 'src_exclude_list' is not defined Traceback (most recent call last): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ----- Original Message ----- From: "Matt Domsch" notifications@github.com Please try upstream master branch now. I reworked how excludes and includes are processed (and where). From my testing, doing a --exclude=* --include=*.jpg does indeed work now. To exclude a directory, be sure you have --exclude=somedir/ (trailing forward slash). |
Thanks. I had not tried --dry-run. This should fix it: diff --git a/s3cmd b/s3cmd
destinations = [args[-1]] On Sun, Mar 16, 2014 at 1:03 PM, ltmitch49 notifications@github.com wrote:
|
I tested this locally and pushed it to upstream master now. Thanks, On Sun, Mar 16, 2014 at 1:27 PM, Matt Domsch matt@domsch.com wrote:
|
Older version had broken processing of exlude and include patterns, see: s3tools/s3cmd#212
I want to upload several files, but don’t touch anything else:
Unfortunately, it doesn’t upload anything in 1.5.0-alpha3. It used to work well in 1.5.0-alpha1.
The text was updated successfully, but these errors were encountered: