[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: rsync's --exclude= syntax
- To: silug-discuss@silug.org
- Subject: Re: rsync's --exclude= syntax
- From: "Steve Reindl" <steve.reindl@gmail.com>
- Date: Sat, 14 Apr 2007 19:53:08 -0500
- DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=s4EuVdkEXErlnopbJGz/WLeTR3tbhpEUgyojKVHGsnqGfQUs5hb6e0KxqZB+pPri9D9Tz0l6A2nMgyMg3CJ2kJyKlcRt9EKIZynNRUKYQQr1/DoeTx0h62aR3NysdCKZ5Izkr0Nubwy/HkXknGfIMoa6VmjyXjjbM96r7Dqr2fo=
- DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=dwAwmCeBY+m692yCKGg9c9mI2zM17UW76H53M+9AlYkUDhKHc328Ev1oeTTtvo9nRIy/FNeUQdKhdCVm2Yf0kDYrFC8AGa4V9t7keY5J8T48Dmj5J01EgZuhNqTX8uFHEhu6II3CZD2fn8cCcp7sd+1sxIyjIpBnMYJ3Hna+R/c=
- In-Reply-To: <1176595659.7308.14.camel@lioness.protogeek.org>
- Organization: Southern Illinois Linux Users Group
- References: <1176595659.7308.14.camel@lioness.protogeek.org>
- Reply-To: silug-discuss@silug.org
- Sender: silug-discuss-owner@silug.org
Not sure if this helps Doc, but you can configure a ~/.rsync/exclude file to list the files to exclude
Example here;
http://sial.org/howto/rsync/#s5 (scroll down to number 5.)
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.
--
____________________
What lies ahead of us and what lies behind us is nothing compared to what lies within us. -- Ralph Waldo Emerson