dsync and altpath on shared storage.

Sami Ketola sami.ketola at dovecot.fi
Mon Sep 2 16:03:29 EEST 2019



> On 2 Sep 2019, at 15.25, Peter Mogensen via dovecot <dovecot at dovecot.org> wrote:
> 
> Hi,
> 
> I was wondering...
> 
> If one had mdbox ALT path set to a shared storage mount (say, on NFS)
> and one wanted to move a mailbox to a different host... I guess it in
> principle wouldn't be necessary to copy all the ALT storage through
> dsync, when the volume could just be mounted on the new host.
> 
> Is there anyway for dsync to avoid moving Gigabytes of data for could
> just be "moved" by moving the mount?


Not tested but you can probably do something like this in the target server:

doveadm backup -u victim -R ssh sudouser at old-server "sudo doveadm dsync-server -o mail_location=sdbox:/location-to-your-sdbox/ -u victim"

just leave ALT storage path from the setting.

Sami



More information about the dovecot mailing list