You can clone with
HTTPS or Subversion.
I want to upload several files, but don’t touch anything else:
s3cmd put --exclude '*.*' --rinclude '^one/file$' --rinclude '^another/file$'
Unfortunately, it doesn’t upload anything in 1.5.0-alpha3. It used to work well in 1.5.0-alpha1.
I'm having an issue with 1.5.0-beta1 where --exclude '*.*' --include '*.png' matches nothing. I wonder if it's related
--exclude '*.*' --include '*.png'
--files-from=<file with list of files to transfer> does work for my usage.
--files-from=<file with list of files to transfer>
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.
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).
Use master branch of s3cmd, change --include / --exclude patterns
Older version had broken processing of exlude and include patterns,