samba-bugs at samba.org
2011-Jan-20 08:30 UTC
DO NOT REPLY [Bug 7927] New: Rsync does not sync folders named "tags"
https://bugzilla.samba.org/show_bug.cgi?id=7927 Summary: Rsync does not sync folders named "tags" Product: rsync Version: 3.0.3 Platform: x86 OS/Version: Linux Status: NEW Severity: major Priority: P3 Component: core AssignedTo: wayned at samba.org ReportedBy: bugzilla at abruti.org QAContact: rsync-qa at samba.org All is in the subject. An example below, on stable debian. Regards, Antony [0]root at debian-lenny32:/tmp # tree . |-- a | |-- file2 | |-- file3 | |-- logs | | `-- log1 | `-- tags | `-- file1 |-- b `-- rsync_exclude.txt 4 directories, 5 files [0]root at debian-lenny32:/tmp # cat rsync_exclude.txt /logs [0]root at debian-lenny32:/tmp # rsync -azC --force --delete --progress --exclude-from=rsync_exclude.txt a/ b sending incremental file list ./ file2 2 100% 0.00kB/s 0:00:00 (xfer#1, to-check=1/3) file3 2 100% 1.95kB/s 0:00:00 (xfer#2, to-check=0/3) sent 142 bytes received 53 bytes 390.00 bytes/sec total size is 4 speedup is 0.02 [0]root at debian-lenny32:/tmp # tree . |-- a | |-- file2 | |-- file3 | |-- logs | | `-- log1 | `-- tags | `-- file1 |-- b | |-- file2 | `-- file3 `-- rsync_exclude.txt 4 directories, 7 files -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
samba-bugs at samba.org
2011-Jan-20 12:06 UTC
DO NOT REPLY [Bug 7927] Rsync does not sync folders named "tags"
https://bugzilla.samba.org/show_bug.cgi?id=7927 ------- Comment #1 from paul at debian.org 2011-01-20 06:06 CST ------- You do understand the implications of all the command line switches you're passing to rsync, right? Quoting from the manpage: -C, --cvs-exclude This is a useful shorthand for excluding a broad range of files that you often don't want to transfer between systems. It uses a similar algorithm to CVS to determine if a file should be ignored. The exclude list is initialized to exclude the following items (these initial items are marked as perishable -- see the FILTER RULES section): RCS SCCS CVS CVS.adm RCSLOG cvslog.* tags TAGS .make.state .nse_depinfo *~ #* .#* ,* _$* *$ *.old *.bak *.BAK *.orig *.rej .del-* *.a *.olb *.o *.obj *.so *.exe *.Z *.elc *.ln core .svn/ .git/ .bzr/ [...] As you can see, "tags" is included in the list of things to exclude when using -C, hence rsync is working exactly the way you asked it to. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
samba-bugs at samba.org
2011-Jan-20 12:49 UTC
DO NOT REPLY [Bug 7927] Rsync does not sync folders named "tags"
https://bugzilla.samba.org/show_bug.cgi?id=7927 matt at mattmccutchen.net changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID ------- Comment #2 from matt at mattmccutchen.net 2011-01-20 06:49 CST ------- Thanks, Paul. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
samba-bugs at samba.org
2011-Jan-20 14:03 UTC
DO NOT REPLY [Bug 7927] Rsync does not sync folders named "tags"
https://bugzilla.samba.org/show_bug.cgi?id=7927 bugzilla at abruti.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED ------- Comment #3 from bugzilla at abruti.org 2011-01-20 08:03 CST ------- Sorry if you had a sad morning Paul ! I do not read rsync manual each day of my life. I should read it each time I have a problem, my fault. I should read it each time I have a problem, my fault. I should read it each time I have a problem, my fault. I should read it each time I have a problem, my fault. I should read it each time I have a problem, my fault. I should read it each time I have a problem, my fault. ... Regards, Antony -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
samba-bugs at samba.org
2011-Jan-20 16:08 UTC
DO NOT REPLY [Bug 7927] Rsync does not sync folders named "tags"
https://bugzilla.samba.org/show_bug.cgi?id=7927 ------- Comment #4 from wayned at samba.org 2011-01-20 10:08 CST ------- I'll also mention that you can ask rsync to include directories named "tags" via --include=tags/ and it will then only exclude files named "tags" (via -C). The rules injected by -C come at the end of the rules (by default) so, any exclude/include rules you specify will override -C rules. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
Michael Gersten
2011-Jan-20 17:34 UTC
DO NOT REPLY [Bug 7927] Rsync does not sync folders named "tags"
> ------- Comment #3 from bugzilla at abruti.org 2011-01-20 08:03 CST > ------- > Sorry if you had a sad morning Paul ! > > I do not read rsync manual each day of my life. > I should read it each time I have a problem, my fault. > I should read it each time I have a problem, my fault. > I should read it each time I have a problem, my fault. > I should read it each time I have a problem, my fault. > I should read it each time I have a problem, my fault. > I should read it each time I have a problem, my fault. > ...You know, you could extend that to a 70+ page book, complete with misspellings, and self publish the result ...