<div dir="auto">This is what my understanding. May be I am also wrong here. <div dir="auto"><br></div><div dir="auto">Backup option is there in my new server, production2. </div><div dir="auto"><br></div><div dir="auto">When I use the command with -R option from new server, it is connecting to old server, Production1 and giving the output of the doveadm backup command in old server to get the data. If you see the command and error I posted, it shows the same. </div><div dir="auto"><br></div><div dir="auto">Sorry just incase if I am wrong.</div><div dir="auto"><br></div><div dir="auto">Kishore</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 27 Jul, 2020, 11:32 pm Antonio Leding, <<a href="mailto:tech@leding.net">tech@leding.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space">Well that option set still doesn’t look correct…<div><br></div><div>Here is the doveadm option set from my 2.2.2 server which is several weeks\months before 2.2.36…<div><br></div><div><br></div><div><br></div><div><div>[Jul-27 @ 15:25:09 ] > dovecot --version</div><div>2.2.2</div><div><br></div><div><div>[Jul-27 @ 15:26:53 ] > ls -l /usr/local/bin/doveadm</div><div>-rwxr-xr-x 1 root root 1379203 May 22  2013 /usr/local/bin/doveadm</div></div><div><br></div><div>[Jul-27 @ 15:25:12 ] > doveadm</div><div>usage: doveadm [-Dv] [-f <formatter>] <command> [<args>]</div><div><br></div><div>  altmove      [-u <user>|-A] [-S <socket_path>] [-r] <search query></div><div>  auth         cache|test</div><div>  backup       [-u <user>|-A] [-S <socket_path>] [-dfR] [-l <secs>] [-m <mailbox>] [-n <namespace>] [-s <state>] <dest></div><div>  batch        [-u <user>|-A] [-S <socket_path>] <sep> <cmd1> [<sep> <cmd2> [..]]</div><div>  config       [doveconf parameters]</div><div>  copy         [-u <user>|-A] [-S <socket_path>] <destination> [user <source user>] <search query></div><div>  director     add|dump|flush|map|move|remove|ring|ring|ring|status</div><div>  dump         [-t <type>] <path></div><div>  exec         <binary> [binary parameters]</div><div>  expunge      [-u <user>|-A] [-S <socket_path>] [-d] <search query></div><div>  fetch        [-u <user>|-A] [-S <socket_path>] <fields> <search query></div><div>  force-resync [-u <user>|-A] [-S <socket_path>] <mailbox mask></div><div>  fs           copy|delete|get|iter|iter-dirs|put|stat</div><div>  help         <cmd></div><div>  import       [-u <user>|-A] [-S <socket_path>] [-s] <source mail location> <dest parent mailbox> <search query></div><div>  index        [-u <user>|-A] [-S <socket_path>] [-q] [-n <max recent>] <mailbox mask></div><div>  instance     list|remove</div><div>  kick         [-a <anvil socket path>] [-f] <user mask>[|]<ip/bits></div><div>  log          errors|find|reopen|test</div><div>  mailbox      create|delete|list|mutf7|rename|status|subscribe|unsubscribe</div><div>  mount        add|list|remove</div><div>  move         [-u <user>|-A] [-S <socket_path>] <destination> [user <source user>] <search query></div><div>  penalty      [-a <anvil socket path>] [<ip/bits>]</div><div>  proxy        kick|list</div><div>  purge        [-u <user>|-A] [-S <socket_path>]</div><div>  pw           [-l] [-p plaintext] [-r rounds] [-s scheme] [-t hash] [-u user] [-V]</div><div>  reload</div><div>  replicator   remove|replicate|status</div><div>  search       [-u <user>|-A] [-S <socket_path>] <search query></div><div>  sis          deduplicate|find</div><div>  stats        dump|top</div><div>  stop</div><div>  sync         [-u <user>|-A] [-S <socket_path>] [-dfR] [-l <secs>] [-m <mailbox>] [-n <namespace>] [-s <state>] <dest></div><div>  user         [-a <userdb socket path>] [-x <auth info>] [-f field] [-u] <user mask> [...]</div><div>  who          [-a <anvil socket path>] [-1] [<user mask>] [<ip/bits>]</div><div>  zlibconnect  <host> [<port>]</div></div><div><br><div><br><blockquote type="cite"><div>On Jul 27, 2020, at 3:28 PM, Kishore Potnuru <<a href="mailto:kishore.reachme@gmail.com" target="_blank" rel="noreferrer">kishore.reachme@gmail.com</a>> wrote:</div><br><div><div dir="auto" style="font-family:Verdana;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">Oh, I am extremely sorry. I was confused when typing the issue. Please help me in fixing the issue. Production1 is my old server. Production2 is my new server. Typing here correctly. Ignore all previous one's.<div dir="auto"><br></div><div dir="auto"><blockquote style="font-family:sans-serif"><div><div dir="ltr"><div>The new version is:<br>====================<br>[root@production2 ~]# dovecot --version<br>2.2.36 (1f10bfa63)<br><br><br>The old version is : <br>======================<br>[root@production1 ~]# dovecot --version<br>2.0.9<br><br><br>I have executed the command from the new server:<br><br><br><br>=================================<br>[root@production2 <a href="http://test.org.com/" target="_blank" rel="noreferrer">test.org.com</a>]# doveadm backup -R -u <a href="mailto:kishore@test.org.com" target="_blank" rel="noreferrer">kishore@test.org.com</a> <a href="mailto:remote%3Avmail@production1.baplc.com" target="_blank" rel="noreferrer">remote:vmail@production1.baplc.com</a><br><a href="mailto:vmail@production1.baplc.com" target="_blank" rel="noreferrer">vmail@production1.baplc.com</a>'s password:<br>usage: doveadm [-Dv] [-f <formatter>] <command> [<args>]<br><br>  altmove      [-u <user>|-A] [-S <socket_path>] <search query><br>  auth         [-a <auth socket path>] [-x <auth info>] <user> [<password>]<br>  config       [doveconf parameters]<br>  director     add|flush|map|remove|status<br>  dump         [-t <type>] <path><br>  expunge      [-u <user>|-A] [-S <socket_path>] <search query><br>  fetch        [-u <user>|-A] [-S <socket_path>] <fields> <search query><br>  force-resync [-u <user>|-A] [-S <socket_path>] <mailbox><br>  help         <cmd><br>  import       [-u <user>|-A] [-S <socket_path>] <source mail location> <dest parent mailbox> <search query><br>  kick         [-a <anvil socket path>] [-f] <user mask>[|]<ip/bits><br>  log          find|reopen|test<br>  mailbox      create|delete|list|mutf7|rename|status|subscribe|unsubscribe<br>  penalty      [-a <anvil socket path>] [<ip/bits>]<br>  purge        [-u <user>|-A] [-S <socket_path>]<br>  pw           [-l] [-p plaintext] [-r rounds] [-s scheme] [-u user] [-V]<br>  reload<br>  search       [-u <user>|-A] [-S <socket_path>] <search query><br>  sis          deduplicate|find<br>  stop<br>  user         [-a <userdb socket path>] [-x <auth info>] <user mask> [...]<br>  who          [-a <anvil socket path>] [-1] [<user mask>] [<ip/bits>]<br>dsync-local(<a href="mailto:kishore@test.org.com" target="_blank" rel="noreferrer">kishore@test.org.com</a>): Error: read(<a href="mailto:vmail@production1.baplc.com" target="_blank" rel="noreferrer">vmail@production1.baplc.com</a>) failed: EOF (version not received)<br>dsync-local(<a href="mailto:kishore@test.org.com" target="_blank" rel="noreferrer">kishore@test.org.com</a>): Error: Remote command returned error 1: ssh -lvmail <a href="http://production1.baplc.com/" target="_blank" rel="noreferrer">production1.baplc.com</a> doveadm dsync-server -<a href="mailto:ukishore@test.org.com" target="_blank" rel="noreferrer">ukishore@test.org.com</a><br><br>[root@production2 <a href="http://test.org.com/" target="_blank" rel="noreferrer">test.org.com</a>]#<br><br>=================================<br></div></div></div></blockquote><br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Mon, 27 Jul, 2020, 11:18 pm Antonio Leding, <<a href="mailto:tech@leding.net" target="_blank" rel="noreferrer">tech@leding.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space">Fair enough but the command snippet I posted was taken directly from your earlier post dated <i style="font-variant-ligatures:normal">Mon Jul 27 23:11:06 EEST 2020</i> and it does say “production1”…I just double-checked as well...<div><br></div><div>FWIW…the server order in the command you just pasted is the exact reverse from the Jul 27th post I mentioned above…</div><div><br></div><div>Here you appear to be exec’ing the command on prod2 and trying to pull from the remote of prod 1…your earlier post was exec’ing on prod1 and pulling from the remote of prod2…</div><div><br></div><div><br><div><br></div><div><br></div><div><br><div><br><blockquote type="cite"><div>On Jul 27, 2020, at 3:10 PM, Kishore Potnuru <<a href="mailto:kishore.reachme@gmail.com" rel="noreferrer noreferrer" target="_blank">kishore.reachme@gmail.com</a>> wrote:</div><br><div><div dir="ltr">I am executing the command from the new server. I was executing the command from production2 server only. It has the backup option, but whereas production1 doesn't have it. Though I am executing from production2, I am seeing the below error. Is it becasue production1 server doesn't have that option? Please let me know, if it is confusing.<div><br><br>The new version is:<br>====================<br>[root@production2 ~]# dovecot --version<br>2.2.36 (1f10bfa63)<br><br><br>The old version is :<span> </span><br>======================<br>[root@production1 ~]# dovecot --version<br>2.0.9<br><br><br>I have executed the command from the new server:<br><br><br><br>=================================<br>[root@production2<span> </span><a href="http://test.org.com/" rel="noreferrer noreferrer" target="_blank">test.org.com</a>]# doveadm backup -R -u<span> </span><a href="mailto:kishore@test.org.com" rel="noreferrer noreferrer" target="_blank">kishore@test.org.com</a><span> </span><a href="mailto:remote%3Avmail@production1.baplc.com" rel="noreferrer noreferrer" target="_blank">remote:vmail@production1.baplc.com</a><br><a href="mailto:vmail@production1.baplc.com" rel="noreferrer noreferrer" target="_blank">vmail@production1.baplc.com</a>'s password:<br>usage: doveadm [-Dv] [-f <formatter>] <command> [<args>]<br><br> <span> </span>altmove      [-u <user>|-A] [-S <socket_path>] <search query><br> <span> </span>auth         [-a <auth socket path>] [-x <auth info>] <user> [<password>]<br> <span> </span>config       [doveconf parameters]<br> <span> </span>director     add|flush|map|remove|status<br> <span> </span>dump         [-t <type>] <path><br> <span> </span>expunge      [-u <user>|-A] [-S <socket_path>] <search query><br> <span> </span>fetch        [-u <user>|-A] [-S <socket_path>] <fields> <search query><br> <span> </span>force-resync [-u <user>|-A] [-S <socket_path>] <mailbox><br> <span> </span>help         <cmd><br> <span> </span>import       [-u <user>|-A] [-S <socket_path>] <source mail location> <dest parent mailbox> <search query><br> <span> </span>kick         [-a <anvil socket path>] [-f] <user mask>[|]<ip/bits><br> <span> </span>log          find|reopen|test<br> <span> </span>mailbox      create|delete|list|mutf7|rename|status|subscribe|unsubscribe<br> <span> </span>penalty      [-a <anvil socket path>] [<ip/bits>]<br> <span> </span>purge        [-u <user>|-A] [-S <socket_path>]<br> <span> </span>pw           [-l] [-p plaintext] [-r rounds] [-s scheme] [-u user] [-V]<br> <span> </span>reload<br> <span> </span>search       [-u <user>|-A] [-S <socket_path>] <search query><br> <span> </span>sis          deduplicate|find<br> <span> </span>stop<br> <span> </span>user         [-a <userdb socket path>] [-x <auth info>] <user mask> [...]<br> <span> </span>who          [-a <anvil socket path>] [-1] [<user mask>] [<ip/bits>]<br>dsync-local(<a href="mailto:kishore@test.org.com" rel="noreferrer noreferrer" target="_blank">kishore@test.org.com</a>): Error: read(<a href="mailto:vmail@production1.baplc.com" rel="noreferrer noreferrer" target="_blank">vmail@production1.baplc.com</a>) failed: EOF (version not received)<br>dsync-local(<a href="mailto:kishore@test.org.com" rel="noreferrer noreferrer" target="_blank">kishore@test.org.com</a>): Error: Remote command returned error 1: ssh -lvmail<span> </span><a href="http://production1.baplc.com/" rel="noreferrer noreferrer" target="_blank">production1.baplc.com</a><span> </span>doveadm dsync-server -<a href="mailto:ukishore@test.org.com" rel="noreferrer noreferrer" target="_blank">ukishore@test.org.com</a><br><br>[root@production2<span> </span><a href="http://test.org.com/" rel="noreferrer noreferrer" target="_blank">test.org.com</a>]#<br><br>=================================<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 27, 2020 at 10:55 PM Antonio Leding <<a href="mailto:tech@leding.net" rel="noreferrer noreferrer" target="_blank">tech@leding.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div>Not sure if this matters but the prompt when attempting the “doveadm backup” command shows it to be a “production" server…<div><br></div><div><pre style="white-space:pre-wrap;font-variant-ligatures:normal">[<a href="https://dovecot.org/mailman/listinfo/dovecot" rel="noreferrer noreferrer" target="_blank">root at production1</a> <a href="http://test.org.com/" rel="noreferrer noreferrer" target="_blank">test.org.com</a>]# doveadm backup -R -u <a href="https://dovecot.org/mailman/listinfo/dovecot" rel="noreferrer noreferrer" target="_blank">kishore at test.org.com</a>
remote:<a href="https://dovecot.org/mailman/listinfo/dovecot" rel="noreferrer noreferrer" target="_blank">vmail at production2.baplc.com</a></pre><div><br></div><div>...that would seem to me to indicate the old box.  If so, then per Kishore’s earlier posts, the machine where this is being attempted is running 2.0.9…not 2.2.36</div><div><br></div><div>Maybe nothing but thought I would mention it…</div><div><br></div><div><br></div><div><br><div><br><blockquote type="cite"><div>On Jul 27, 2020, at 2:50 PM, Sami Ketola <<a href="mailto:sami.ketola@dovecot.fi" rel="noreferrer noreferrer" target="_blank">sami.ketola@dovecot.fi</a>> wrote:</div><br><div><div><br><br><blockquote type="cite">On 28. Jul 2020, at 0.10, Kishore Potnuru <<a href="mailto:kishore.reachme@gmail.com" rel="noreferrer noreferrer" target="_blank">kishore.reachme@gmail.com</a>> wrote:<br><br>Yes. Please find the details of the servers below. I am executing the command from one of the new servers.<br></blockquote><br>I find it very hard to believe this. Shall I look at the version control when backup was added as option to doveadm?<br><br>2.2.36 has it:<br><br>[root@ketola ~]# dovecot --version<br>2.2.36.8 (0c9d56b41)<br>[root@ketola ~]# doveadm backup<br>doveadm backup [-u <user>|-A] [-S <socket_path>]  [-fPRU] [-l <secs>] [-r <rawlog path>] [-m <mailbox>] [-g <mailbox_guid>] [-n <namespace> | -N] [-x <exclude>] [-s <state>] [-t <start date>] -d|<dest><br><br><br>Sami</div></div></blockquote></div></div></div></div></blockquote></div></div></blockquote></div></div></div></div></blockquote></div></div></div></div></blockquote></div><br></div></div></div></blockquote></div>