[wplug] rsync exclude syntax

Larry Daberko larry at daberko.com
Sat Apr 6 00:33:59 EDT 2013


Arnaud,

On Ubuntu, I created this dir:

drwxrwxr-x 2 user user 4096 Apr  6 00:27 .HFS+ Private Directory Data?

and this command works, skipping the HFS dir:

rsync -a --delete --exclude "Backups.backupdb" --exclude "\.HFS+\ 
Private\ Directory\ Data\?" <source> <destination>

-Larry

On 04/05/2013 11:29 PM, Arnaud wrote:
> Could someone help me refine the syntax of my rsync command.
>
> rsync -a --delete --exclude "Backups.backupdb" --exclude ".HFS+\ Private\
> Directory\ Data$'\r'" <source> <destination> &
>
> I've tried with both single and double quotes around my excludes to no
> avail.
>
> When I look at the background job it shows
> rsync -a --delete --exclude "Backups.backupdb" --exclude  <source>
>
> That second directory is named .HFS+ Private Directory Data? (the question
> mark is part of the dir name). I got the $'\r' parameter by tab completing
> in bash so I assume it's correct.
>
> So basically I need to figure out how to correctly pass the .HFS+ directory
> to the exclude parameter.
>
> Any thoughts? Thanks.
> _______________________________________________
> wplug mailing list
> wplug at wplug.org
> http://www.wplug.org/mailman/listinfo/wplug



More information about the wplug mailing list