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

Re: rsync's --exclude= syntax



On Sat, Apr 14, 2007 at 07:07:38PM -0500, Robert G. (Doc) Savage 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???

  --exclude .cgf-stage/ \
  --exclude .stage-cgf/ \
  --exclude mail-archives/ \
  --exclude tmp/ \
  --exclude .message \
  --exclude SYNC_STAMP.txt

Steve
-- 
steve@silug.org           | Southern Illinois Linux Users Group
(618)398-3000             | See web site for meeting details.
Steven Pritchard          | http://www.silug.org/

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