Dovecot dump/restore hook #834
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What I'd like to do and why
In the before_backup and after_backup hooks, access to borgmatic_source_directory config variable would be useful if the generic hooks need to dump temporary data.
For example, I'm backing up email from Dovecot, which needs to be dumped to a temporary location like a database. So I'd like to be able to use {borgmatic_source_directory}/$somedirectory as my temporary backup directory.
Other notes / implementation ideas
No response
Thanks for taking the time to file this. Even though
borgmatic_source_directory
is a user-configurable path, I'll admit that I'm a little hesitant to encourage borgmatic users to put files there, as it's currently used only for internal borgmatic state and managed solely by borgmatic. But maybe it would be okay to expose anyway, along with appropriate documented caveats?As for backing up Dovecot, out of curiosity, what are you using for that? (I'm a Dovecot user too.)
doveadm backup
? Makes me wonder if there could be a borgmatic hook for Dovecot.Thanks!
After thinking about this some more, I agree you're probably right and this probably isn't actually that helpful anyway.
Yes, I use
doveadm backup
... and I think it would be an excellent candidate for a hook :-)Got it, thanks! I'll rename this ticket accordingly.
Interpolate borgmatic_source_directory in preparation/cleanup hooksto Dovecot dump/restore hook