Doveadm backup doesn't interpret placeholders

Aki Tuomi aki.tuomi at dovecot.fi
Mon Jan 23 08:53:59 UTC 2017



On 19.01.2017 10:49, James Pharaoh wrote:
> Hi,
>
> Dovecot version: 2.2.27
>
> I'm using replication between two servers for high availability, but I
> also want to backup all users. I have a setting for the replication to
> work like this:
>
> plugin {
>     mail_replica = tcp:other-dovecot
> }
>
> This is fine, but then I also want to do a backup to a different
> directory for all users, since I am having trouble with an apparent
> bug running dovecot on btrfs. For this reason, I am storing my emails
> on ext4, but want to sync them to the BTRFS filesystem I use for my
> server before doing a snapshot.
>
> My mails are stored in /var/mail/mailboxes, and the backup is in
> /var/mail/mailboxes-backup, the former being the ext4 mount and the
> latter being part of the btrfs filesystem which belongs to the
> container where all this runs.
>
> The problem is that dovecot seems to only have a single concept of the
> mail backup location, which is either a remote, as above, or a
> filesystem location.
>
> The logical answer seems to be to provide the backup location when
> performing the local copy for a snapshot, so I run:
>
> doveadm backup -A mdbox:/var/mail/mailboxes-backup/%d/accounts/%u

Try doveadm -o mail_home=/var/mail/mailboxes-backup/%d/accounts/%u
backup -A mdbox:~/

Aki


More information about the dovecot mailing list