dsync multiple mailboxes per connection?
Hello,
Is it possible to batch syncs of multiple mailboxes in a single dsync session?
We’re transferring users between servers and want to use dsync to transfer the mail; ideally we’d like to avoid creating a separate TCP connection per user.
Thank you!
cheers, -Felipe Gasper
On 18. May 2020, at 17.18, Felipe Gasper felipe@felipegasper.com wrote:
Hello,
Is it possible to batch syncs of multiple mailboxes in a single dsync session?
We’re transferring users between servers and want to use dsync to transfer the mail; ideally we’d like to avoid creating a separate TCP connection per user.
Thank you!
Not possible. But can run multiple users parallel.
Sami
On 20/05/2020 22.47, Sami Ketola wrote:
We’re transferring users between servers and want to use dsync to transfer the mail; ideally we’d like to avoid creating a separate TCP connection per user.
Would writing a script to process each user sequentially be an option?
Like ...
for USER in user1 user2 user3 user4 do doveadm sync -u $USER ssh user@remoteserver.com doveadmn dsync-server -u $USER done
Or if that's not possible, just write them out longhand:
doveadm sync -u user1 ssh user@remoteserver.com doveadmn dsync-server -u otheruser1 doveadm sync -u user2 ssh user@remoteserver.com doveadmn dsync-server -u otheruser2 doveadm sync -u user3 ssh user@remoteserver.com doveadmn dsync-server -u otheruser3
P.
participants (3)
-
Felipe Gasper
-
Plutocrat
-
Sami Ketola