[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rsync's --exclude= syntax



you could try:

--exclude-from=~/.rsync/exclude

which is txt file with a pattern list separated by new-lines

tim

On 4/14/07, Robert G. (Doc) Savage <dsavage@peaknet.net> wrote:
> As is so often the case with Linux/UNIX utilities, the man page for
> rsync lacks the syntax details to make the --exclude= option work. I'm
> trying to avoid rsyncing the following remote files and directories:
>
> .cgf-stage/
> .stage-cgf/
> mail-archives/
> tmp/
> .message
> SYNC_STAMP.txt
>
> The following variations do NOT work:
>
> --exclude='./.cgf-stage/ ./.stage-cgf/ ./mail-archives/ ./tmp/ ./.message ./SYNC_STAMP.txt'
> --exclude='.cgf-stage/ .stage-cgf/ mail-archives/ tmp/ .message SYNC_STAMP.txt'
>
> What will???
>
> --Doc
>
>
>
>
>
> -
> To unsubscribe, send email to majordomo@silug.org with
> "unsubscribe silug-discuss" in the body.
>

-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.