[Wiltshire] rsync very selectively
ph1 at openstrike.co.uk
Mon Jun 11 21:46:05 UTC 2012
On Mon, Jun 11, 2012 at 09:58:32PM +0100, David Fletcher wrote:
> On Mon, 2012-06-11 at 17:19 +0100, Pete Houston wrote:
> > On Mon, Jun 11, 2012 at 04:46:40PM +0100, David Fletcher wrote:
> > > and the BackupIncludes file contains
> > > scripts/
> > > .bash*
> > For recursion into scripts/ would
> > scripts/***
> > do the job? This assumes a modern rsync (>2.6.6).
> > Pete
> That appears to be doing exactly what I wanted it to do, thanks. Remind
> me to buy you a beer if you see me in the pub.
> How do you know this trick? I seemed to spend hours sifting through the
> man page and google searches and couldn't find it.
Glad to hear it works for you. I've spent some time over the years going
through the various pattern-matching bits of the man page so knew where
to look. It is in the section headed "INCLUDE/EXCLUDE PATTERN RULES" -
at least in my version which is 3.0.8.
All the best,
Openstrike - improving business through open source
http://www.openstrike.co.uk/ or call 01722 770036 / 07092 020107
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: not available
More information about the Wiltshire