Exclude-from behavior compared to linux

1 post / 0 new
ritmo2k
Offline
Last seen: 9 years 10 months ago
Joined: 27.05.2013 - 03:45
Exclude-from behavior compared to linux

On Linux, an rsync command and exclude_file contents of:

# cat exclude_file
/etc/alsa
# rsync -ra --delete --delete-excluded --exclude-from=exclude_file /etc server::module

properly excludes /etc/alsa but not any file within /etc's directories that is named alsa.

On Windows I don't seem to be able to reliably emulate this:
C:\Scripts\Backup\rsyncd>type rsyncd_exclude
/cygdrive/d/$RECYCLE.BIN
/cygdrive/d/Exclude
/cygdrive/d/Inetpub
/cygdrive/d/System Volume Information
C:\Program Files (x86)\cwRsync\bin>rsync -ra --delete --delete-excluded --exclude-from=exclude_file /cygdrive/d server::module

fails to omit these, the only way I get this to work is:

C:\Scripts\Backup\rsyncd>type rsyncd_exclude
*/$RECYCLE.BIN
*/Exclude
*/Inetpub
*/System Volume Information

Which obviously might exclude nested objects of the same name as its not anchored. Anyone know if this can be corrected?

Thanks

Release news