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.montag...@inria.fr, Tel: (33) 04 92 38 79 11, Bur: C113
INRIA Sophia, 2004, rte des Lucioles, B.P.93 - 06902 Sophia Antipolis Cedex
-- 
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

Reply via email to