copy /backup/current/home/???user>/Maildir -> /home/???user>/Maildir ?
Francis.Montagnac at inria.fr
Francis.Montagnac at inria.fr
Thu Jul 14 03:24:46 MDT 2011
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.
--
Francis.Montagnac at inria.fr, Tel: (33) 04 92 38 79 11, Bur: C113
INRIA Sophia, 2004, rte des Lucioles, B.P.93 - 06902 Sophia Antipolis Cedex
More information about the rsync
mailing list