rsyncing Maildirs

Wayne Davison wayned at
Fri Nov 7 03:57:20 EST 2003

On Thu, Nov 06, 2003 at 10:48:37AM +0100, Snorre Narum Garmann wrote:
> rsync -av --include "/*/Maildir/**" --exclude "*" -recursive
> server::mailbackup .

Isn't this copying the wrong way? i.e. don't you want to send files TO
the mailbackup server?

In any respect, this is a case where include/exclude is overkill.  Just
do something like this:

cd /home; rsync -avR */Maildir server::mailbackup

or, if you really wanted to pull, this:

rsync -avR 'server::mailbackup/*/Maildir' /home


More information about the rsync mailing list