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

rsync's --exclude= syntax



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.