Time Waster <(E-Mail Removed)> wrote:
> Matthew Lincoln <(E-Mail Removed)> wrote:
>
> >In other words should I write:
> >
> >rsync .... --exclude=/home/mylog* ....
>
> Use --exclude '/home/mylog*' ...
Correct, putting quotes around the name prevents the shell expanding the
star into a list of files before rsync reads it. With the quotes, rsync
sees the star and can apply that as a wildcard match itself.
> You can have as many exclude clauses as you want.
You can also put a file called .rsync-filter into the source directory
and then you can use the -F option to rsync instead of listing the
exclude rules on the command line every time. This is easier if you have
to sync often, and you don't have to worry about the shell doing
anything funny with wildcards.
> I agree, the man page isn't great.
It's very long and a little verbose, but not lacking in detail.
--
James Taylor
|