Efficient way to backup maildirs from post-sync hook?
Nicolas Sebrecht
nicolas.s-dev at laposte.net
Sun Mar 6 14:25:07 GMT 2011
On Sun, Mar 06, 2011 at 12:19:24PM +0000, seanh wrote:
>
> I'm trying to use offlineimap's postsynchook to run a command to
> incrementally backup my local maildirs. This seemed like a good place to
> do the incremental backup as it will be called after every sync (if the
> backup is run any less frequently there is a risk of losing mail), and
> it lets me just use the offlineimap command as usual instead of having
> to use my own script that runs offlineimap and then a backup command or
> something like that.
>
> The problem is that I can't find a way of incrementally backing up the
> maildirs that is reasonably fast and easy on system resources.
<...>
> Does anyone know a faster way of doing this?
Did you try rdiff-backup? It's a very nice and efficient python tool for
backup purpose.
--
Nicolas Sebrecht
More information about the OfflineIMAP-project
mailing list