I tried the "--fuzzy --delete-after" options. It works fine when the files are renamed. But the prob is that when a mail is deleted it gets deleted from the backup server as well.
Is there a way to prevent deletion when using these options?
Thanks CoolAtt
To: dovecot@dovecot.org From: sb@dod.no Date: Fri, 29 Jan 2010 08:58:27 +0100 Subject: Re: [Dovecot] Anyone successfully setup Continous Backup of mailboxes using rsync ?
Timo Sirainen <tss@iki.fi>:
The main potential problem with that is that if a message's flag is changed, the filename changes so it's now stored twice in the backup server. So when restoring mails, be sure not to restore duplicates.
I use the --fuzzy flag to handle the renaming issue. Here's my crontab entry on the machine holding the backup: 0 * * * * rsync --archive --fuzzy --delete-after imapserver:Maildir .
As you can see I only sync once an hour. I don't have enough email traffic to justify doing it continously.
The --delete-after is so rsync won't delete files that have been removed on the source, before figuring out that a file has been renamed and not been deleted.
Hotmail: Trusted email with Microsoft’s powerful SPAM protection. https://signup.live.com/signup.aspx?id=60969