From: SourceForge.net <no...@so...> - 2011-09-06 18:30:51
|
Bugs item #3171758, was opened at 2011-02-03 11:46 Message generated for change (Comment added) made by fboisseau You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=887015&aid=3171758&group_id=178907 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: s3cmd Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Simon Hill (sphill10) Assigned to: Nobody/Anonymous (nobody) Summary: Exclude directory not working Initial Comment: I want to sync a directory but exclude a couple of sub-directories. I've tried the following but none seem to work For example, I want to sync everything in /webroot except for the directory /webroot/admin s3cmd sync --dry-run --verbose --encoding UTF-8 --exclude "/webroot/admin/" /webroot/* s3cmd sync --dry-run --verbose --encoding UTF-8 --exclude "/webroot/admin/*" /webroot/* s3cmd sync --dry-run --verbose --encoding UTF-8 --exclude "/webroot/admin" /webroot ---------------------------------------------------------------------- Comment By: Freddy Boisseau (fboisseau) Date: 2011-09-06 14:30 Message: After doing a lot of testing, I believe I have discovered the issue. The problem is that the --exclude/--include(-from), when converting the values in the these list to regular expression it does not handle the directory name correctly. What I believe it should be doing is replacing a "./" in the file names in list with a "^". This would make "./webroot/admin/" "^webroot\/admin\/.*$", when converted to regular expressions. Until this change is made, using the regular expression and manually converting them, will work. This is what I am doing. ---------------------------------------------------------------------- Comment By: Christian S. (krasseszeug) Date: 2011-05-12 06:08 Message: After a lot of testing i found a workaround. If you write: s3cmd sync --exclude "*webroot/admin/*" /webroot it works. Its not really a solution, but works for me. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=887015&aid=3171758&group_id=178907 |