Forum Moderators: bakedjake

Message Too Old, No Replies

rsync - How to exclude folder with spaces

/System Volume Information

         

Nutter

1:22 pm on Mar 4, 2006 (gmt 0)

10+ Year Member



I'm running an rsync script, but need to figure out how to exclude a certain folder.

The script mounts a share on my XP computer through SMBFS, rsyncs, and then unmounts. On that share is a /Recycled folder and /System Volume Information folder. The Recycled was easy enough to exclude using --exclude-file=whatever and putting /Recycled in the whatever file.

But how do I exclude the /System Volume Information folder? Wrapping in quotes doesn't seem to work, although that may just be my habit of using Windows showing through.

SeanW

4:19 pm on Mar 4, 2006 (gmt 0)

10+ Year Member



Did you try

--exclude "System\ Volume\ Information"

?

It also looks like patterns are matched, so failing that,

--exclude "System*Information"

Sean

wheel

4:32 pm on Mar 4, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yeah, putting a backslash in front of the space tells linux to interpret the next character literally - so slash space should do it.