exclude files from backup with rsync -b

View: New views
2 Messages — Rating Filter:   Alert me  

exclude files from backup with rsync -b

by Thomas Gutzler-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

is there a way to exclude files from being backed up when running rsync -b?
Let's assume the following file tree:
./src/f1
./src/temp/t1
./dest/src/f1
./dest/src/temp/t1
Now, I'm modifying both files f1 and t1 and run
rsync -a --relative -b --backup-dir=/backup/ src/ dest/
Both ./dest/src/f1 and ./dest/src/temp/t1 should have been updated but
I only want /backup/ to contain the old src/f1 and NOT the old
temp/t1.
How?

Tom
--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Re: exclude files from backup with rsync -b

by Matt McCutchen-7 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, 2009-10-21 at 17:50 +0800, Thomas Gutzler wrote:
> is there a way to exclude files from being backed up when running rsync -b?

No.  --backup is one of many rsync options for which per-file settings
might be useful but are not currently supported.

--
Matt

--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html