Exclude filemask of Phrase with Space Not Working on Windows

Advertisement

busthead
Joined:
Posts:
3

Exclude filemask of Phrase with Space Not Working on Windows

This is my synchronize command:
synchronize remote -delete -filemask="|*snapshot/; *recycle/; ""*Little Children""; Thumbs.db; *.iso; *.mkv; *.mp4; *.m4p; *.m4v; *.mpg; *.mpeg; *.m2v; *.avi; *.mkv; *.qt; *.rm; *.wmv; *.WebM; *.flv; *.ogv; *.vob; *.xva; *.bin; *.dmg; *.pbd; *.m4v; *.img; *.adi; *.bad; *.xbk; *.vmdk; *.pkg; *.old; *.toast; *.dat; *.vmem; *.pst; <=524,288,000" "\\192.168.0.10\source" /destination
I expect any file or directory containing "Little Children" to be excluded.

Here are my logs:
Synchronizing...
Local '\\192.168.0.10\source\Audio\Albums\Commercial\Jump, Little Children\[1997] Buzz' => Remote '/destination/Audio/Albums/Commercial/Jump, Little Children/[1997] Buzz'
\\192.168.0.10\source\Audio\Albums\Commercial\Jump, Little Children\[1997] Buzz\01. Jump, Little Children - I Can Feel You.ext |        8884 KB |  150.9 KB/s | binary | 100%
\\192.168.0.10\source\Audio\Albums\Commercial\Jump, Little Children\[1997] Buzz\02. Jump, Little Children - Easter Parade.ext |       12575 KB |  161.6 KB/s | binary | 100%
What am I doing wrong?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
42,686
Location:
Prague, Czechia

Re: Exclude filemask of Phrase with Space Not Working on Windows

Please remove the inner "" quotes. This should do:
-filemask="|*snapshot/; *recycle/; *Little Children*; Thumbs.db..."
Though this matches files only, if you need to exclude also directories, you need a separate mask for them:
-filemask="|*snapshot/; *recycle/; *Little Children*; *Little Children*/; Thumbs.db..."

Reply with quote

Advertisement

You can post new topics in this forum