Exclude directory from --delete

Matt McCutchen matt at mattmccutchen.net
Sat Oct 3 22:45:19 MDT 2009

On Sat, 2009-10-03 at 21:03 -0700, J. Ellis wrote:
> So let me see if I understand correctly. First, are the \ characters
> followed by a return, or are they all on a single line? In other words, is
> this entered in the terminal as one command, or does it need to be broken up
> somehow?

The \ is a notation for line continuation recognized by bash, among
other programs.  So you can either type the command with backslashes and
returns as I gave it or put everything on a single line without

> And then each of the symlinks for the directories specified will be treated
> as symlinks,

Directories, I think you mean.

> but any symlinks below them will still be treated as symlinks?

Correct.  It's magic.


More information about the rsync mailing list