delete exclusion

jw schultz jw at pegasys.ws
Wed Jun 25 09:50:36 EST 2003


On Tue, Jun 24, 2003 at 04:47:37PM -0700, Gregory Brauer wrote:
> jw schultz wrote:
> >On Tue, Jun 24, 2003 at 04:29:47PM -0700, Gregory Brauer wrote:
> >
> >>Is it possible to use rsync to mirror a group of files, deleteing
> >>most files from the mirror when they disappear from the source,
> >>but not deleting a certain set of files that match a pattern if
> >>they disappear from the source?
> >
> >
> >What a vague yes or no question.  Which would you like "yes"
> >or "no"?  Either would be correct depending on the
> >details left out of the question.
> >
> >Read the manpage sections on --exlude, --delete and
> >--delete-exlcuded, then you will be able to answer your own
> >question or at least frame it in a way that isn't so vague.
> >
> 
> Is there a way to do:
> 
> rsync -a --delete --exclude "foo*" rsync://somewhere.com/A/ /here/A/
> rsync -a --include "foo*" --exclude "*" rsync://somewhere.com/A/ /here/A/
> 
> In a single rsync command?

No.

-- 
________________________________________________________________
	J.W. Schultz            Pegasystems Technologies
	email address:		jw at pegasys.ws

		Remember Cernan and Schmitt



More information about the rsync mailing list