[Bug 12378] New: why i cannot exclude dir/files if using option "--files-from"
samba-bugs at samba.org
samba-bugs at samba.org
Thu Oct 13 15:45:14 UTC 2016
https://bugzilla.samba.org/show_bug.cgi?id=12378
Bug ID: 12378
Summary: why i cannot exclude dir/files if using option
"--files-from"
Product: rsync
Version: 3.1.2
Hardware: x64
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: core
Assignee: wayned at samba.org
Reporter: isaja at sissa.it
QA Contact: rsync-qa at samba.org
I don't understand if this is intended or not, but when I use "--files-from"
and "--exclude" options together all files are synced anyhow.
eg.:
rsync -av -c --delete --relative --delete-excluded --exclude=".cache"
--exclude="mydirToExclude" /home .
it correctly doesn't copy the .cache folder.
but:
rsync -av -c --delete --relative --delete-excluded --files-from=myFileList.txt
--exclude=".cache" --exclude="mydirToExclude" /home .
does copy everything.
instead using a pattern such as --exclude="**myDirToExclude**"
doesn't copy all lines with that pattern
myFileList.txt is something like:
userName/.cache/mozilla/firefox/e9dwu0jm.default/cache2/entries/D3BD7BB89AFC5E5C3921C55D38B7DB4F6A6A8C55
userName/.cache/mozilla/firefox/e9dwu0jm.default/cache2/entries/996E251B0D179792066F30DEB82476DF9D5E8B15
userName/.cache/mozilla/firefox/e9dwu0jm.default/directoryLinks.json
userName/.cache/winetricks/dotnet40/dotNetFx40_Full_x86_x64.exe
userName/.cache/winetricks/dotnet30/dotnetfx3.exe
userName/.cache/winetricks/dotnet20sp2/NetFx20SP2_x86.exe
userName/.cache/winetricks/msls31/InstMsiW.exe
userName/Downloads/Sentinel_LDK_Run-time_setup/HASPUserSetup.exe
userName/Downloads/Sentinel_LDK_Run-time_setup/readme.html
Thanks,
alessio
--
You are receiving this mail because:
You are the QA Contact for the bug.
More information about the rsync
mailing list