On Thu, Jul 14, 2011 at 11:24:46AM +0200, [email protected] wrote: > > On Sat, 09 Jul 2011 15:04:24 +0200 Louis-David Mitterrand wrote: > > > Is there also a pure rsync solution (without any shell loop) maybe based > > on --include/--exclude? > > I thing the following will do: > > cd /backup/current/home > rsync -av --delete \ > --include '/*/' \ > --include '*/Maildir/***' \ > --exclude '*' \ > . /home > > Beware that the *** needs at least version 2.6.7.
Thanks for that suggestion. It's always nice to have working examples of include/exclude patterns in one's toolbox. Have a nice day, -- 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
