copy /backup/current/home/???user>/Maildir -> /home/???user>/Maildir ?
vindex+lists-rsync at apartia.org
Fri Jul 15 00:55:25 MDT 2011
On Thu, Jul 14, 2011 at 11:24:46AM +0200, Francis.Montagnac at inria.fr 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,
More information about the rsync