<html><head><title>Re: doveadm sync backup from old to new server</title>
<meta charset="utf-8" http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE" />
</head>
<body>
<br><br>
<br>
<table style =" border-collapse: collapse;" cellpadding = 1 cellSpacing = 2>
<tr>
<td  width=3 bgcolor= #0000ff><br>
</td>
<td ><br><br>
<br>
<br>
<br>
<span style=" font-family:'courier new'; font-size: 9pt; color: #800000;"><b>>> On 15/05/2020 07:10 Plutocrat <</b></span><a style=" font-family:'courier new'; font-size: 9pt;" href="mailto:plutocrat@gmail.com">plutocrat@gmail.com</a><span style=" font-family:'courier new'; font-size: 9pt; color: #800000;"><b>> wrote:<br>
<br>
>>  <br>
>> On 15/05/2020 10.56, Gregory Sloop wrote:<br>
>> > IMAP sync looks better and better. I'm a little puzzled why I don't just give up walking on the broken glass and use it - but it just bugs the heck out of me.<br>
<br>
>> If you can get the dovecot native sync to work, it seems to be a better option, as it understands all the dovecot index formats etc, and will transfer those correctly. Imapsync doesn't, and when I did that I had a few problems with POP email clients re-downloading their entire Inbox, which produced a few groans. Your mileage may vary.<br>
<br>
>> Another option for you, if you have the time and energy would be to set up proper replication between the two servers. Then any changes made would be synced in real time, until the cutoff, when you just shut down the old server and the new one is already up to date. But if you can't get a simple sync happening then that might be a bit of over-reach.<br>
<br>
>> My suspicions on your current situation would center around the complications introduced by docker, and on file/container permissions, environment variables, paths etc.<br>
<br>
>> How about if you just try a simple doveadm command over ssh from the remote server to make sure that works. eg. from "Sending" server do<br>
<br>
>> ssh </b></span><a style=" font-family:'courier new'; font-size: 9pt;" href="mailto:root@po.abc.net">root@po.abc.net</a><span style=" font-family:'courier new'; font-size: 9pt; color: #800000;"><b> \<br>
>>  docker exec b3093cxxxxxx doveadm user </b></span><a style=" font-family:'courier new'; font-size: 9pt;" href="mailto:user@abc.net">user@abc.net</a><br>
<br>
<span style=" font-family:'courier new'; font-size: 9pt; color: #800000;"><b>>> That should execute the doveadm user command on the remote (receiving) server. If that works, then at least you can satisfy yourself that the docker bit is working correctly. Not sure why I'm getting involved in someone else's troubleshooting nightmare! ;-)<br>
<br>
>> P.<br>
<br>
AT> You need to have ssh installed. If you want to do sync over ssh.<br>
AT> The docker image hasn't got ssh client installed by default.<br>
<br>
AT> Also see </b></span><a style=" font-family:'courier new'; font-size: 9pt;" href="https://wiki.dovecot.org/Replication">https://wiki.dovecot.org/Replication</a><span style=" font-family:'courier new'; font-size: 9pt; color: #800000;"><b> for more configuration options.<br>
<br>
</b><span style=" color: #000000;">SSH *is* installed<br>
<br>
# ssh root@abc.net \<br>
> docker exec b3093c6200a9 ls -al<br>
<br>
root@abc.net's password:<br>
total 124<br>
drwxr-xr-x   1 root root  4096 Apr 15 17:30 .<br>
drwxr-xr-x   1 root root  4096 Apr 15 17:30 ..<br>
-rwxr-xr-x   1 root root     0 Apr 15 17:29 .dockerenv<br>
drwxr-xr-x   1 root root  4096 Apr 14 01:23 bin<br>
drwxr-xr-x   2 root root  4096 Feb  1 09:09 boot<br>
drwxr-xr-x   5 root root   380 May 12 11:25 dev<br>
-rwxr-xr-x   1 root root 14951 Apr 14 08:31 docker-entrypoint.sh<br>
drwxr-xr-x   1 root root  4096 Apr 15 17:30 etc<br>
drwxr-xr-x   2 root root  4096 Feb  1 09:09 home<br>
drwxr-xr-x   2 root root  4096 Apr 15 17:30 hooks<br>
drwxr-xr-x   1 root root  4096 Apr 14 01:23 lib<br>
drwxr-xr-x   2 root root  4096 Mar 26 17:00 lib64<br>
drwxr-xr-x   2 root root  4096 Apr 15 17:30 mail_crypt<br>
drwxr-xr-x   2 root root  4096 Mar 26 17:00 media<br>
drwxr-xr-x   2 root root  4096 Mar 26 17:00 mnt<br>
drwxr-xr-x   2 root root  4096 Mar 26 17:00 opt<br>
dr-xr-xr-x 232 root root     0 May 12 11:25 proc<br>
drwx------   1 root root  4096 Apr 14 01:23 root<br>
drwxr-xr-x   1 root root  4096 May 12 11:25 run<br>
drwxr-xr-x   1 root root  4096 Apr 14 01:23 sbin<br>
drwxr-xr-x   2 root root  4096 Mar 26 17:00 srv<br>
-rw-r--r--   1 root root 12126 May 14 15:48 supervisord.log<br>
dr-xr-xr-x  13 root root     0 May 12 11:25 sys<br>
drwxr-xr-x   2 root root  4096 Apr 15 17:21 templates<br>
drwxrwxrwt   1 root root  4096 May 14 21:44 tmp<br>
drwxr-xr-x   1 root root  4096 Mar 26 17:00 usr<br>
drwxr-xr-x   1 root root  4096 Apr 15 17:30 var</td>
</tr>
</table>
<br>
<span style=" font-family:'Courier New'; font-size: 9pt;">Doh.<br>
I wasn't thinking clearly.<br>
Yeah, I guess I'm not sure if sshd is available in the docker container itself.<br>
<br>
But that would be *sshd* not the ssh client, right?</body></html>