Re: Fwd: Delete some excluded files in rsync

2006-03-07 Thread Wayne Davison
Karel Kulhavy <[EMAIL PROTECTED]> wrote:
> I suggest that a feature be added into rsync. That one could
> separately specify excluded files that should be deleted on the
> receiver and excluded files that shouldn't be deleted on the
> receiver.

That's already possible using filter rules.  An exclude both hides files
on the sending side, and protects files on the receiving side.  Each of
these actions may be specified separately using a filter option, like
these:

--filter='hide sender.file'
--filter='protect receiver.file'
--filter='exclude both-sides.file'

You can abbreviate "hide" as "H", "protect" as "P" and "exclude" as "-",
as you see fit.  Also, -f is short for --filter.

See also the "merge" (.) filter rule, which slurps a bunch of filter
rules from a file, as well as the "show" (S) and "risk" (R) rules, which
allow you to specify exceptions for your hide and protect rules.

..wayne..
-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Fwd: Delete some excluded files in rsync

2006-03-07 Thread Martin Pool



Begin forwarded message:


From: Karel Kulhavy <[EMAIL PROTECTED]>
Date: 7 March 2006 18:01:43
To: Martin Pool <[EMAIL PROTECTED]>
Subject: Delete some excluded files in rsync

Hello

I suggest that a feature be added into rsync. That one could  
separately

specify excluded files that should be deleted on the receiver and
excluded files that shouldn't be deleted on the receiver.

I am using rsync for remote updating of my website
http://ronja.twibright.com
and this feature would be handy because some files are generated on
the server because cannot be generated on the laptop where the files
are edited, and shouldn't be deleted. The remaining excluded files
should be deleted on the receiver if they got accidentally copied  
in the

past, for example becaue the rsync script wasn't tuned properly.

Regards,

CL<


--
Martin Pool



--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html