{"id":2672,"date":"2013-12-26T20:50:52","date_gmt":"2013-12-26T12:50:52","guid":{"rendered":"http:\/\/rmohan.com\/?p=2672"},"modified":"2013-12-26T21:10:44","modified_gmt":"2013-12-26T13:10:44","slug":"how-to-migrate-zimbra-mail-server-from-one-machine-to-another-new-machine","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=2672","title":{"rendered":"How to Migrate Zimbra mail server from one machine to Another New Machine"},"content":{"rendered":"<p>A ) Zimbra Old server<\/p>\n<p>1 ) As root user <\/p>\n<p>    root@root:~#su zimbra<\/p>\n<p>2 ) Now stop the zimbra services   <\/p>\n<p> zimbra@zimbra:~$  zmcontrol stop<\/p>\n<p>Now on the New Server which having same os configuration and installed zimbra mail application on it.   <\/p>\n<p>B ) Zimbra New server<br \/>\n1 )  As root user : [ use sudo -i ]      <\/p>\n<p> [ make sure you have installed same version of zimbra with same configuration like domain name etc. ]<\/p>\n<p>We now perform the first copy of the zimbra directory between the old mail server and new mail server . On the New server we must stop Zimbra. Stop zimbra on old machine or We leave Zimbra running on the live server for now to reduce downtime.<\/p>\n<p>The following rsync command is run on the New Mail server. Substitute the hostname or IP address of the Old server as required in the command below.<\/p>\n<p>a ) On New mail server [ Rsync  between old to new server ]<\/p>\n<p>service zimbra stop<\/p>\n<p>or <\/p>\n<p>zimbra@zimbra:~$zmcontrol stop  <\/p>\n<p>rsync -aHz &#8211;force &#8211;delete live_server:\/opt\/zimbra\/ \/opt\/zimbra\/<\/p>\n<p>eg : rsync -aHz &#8211;force &#8211;delete root@192.168.28.6:\/opt\/zimbra\/ \/opt\/zimbra\/<br \/>\n[ where ip 192.168.28.6 is our old mail server ]<\/p>\n<p>b ) now execute the below command after rsync done.<\/p>\n<p>chown -R zimbra:zimbra \/opt\/zimbra<br \/>\n\/opt\/zimbra\/libexec\/zmfixperms<\/p>\n<p>Now reboot the machine. <\/p>\n<p>root@root:~# reboot <\/p>\n<p>c ) Start Zimbra.  Everything should work<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A ) Zimbra Old server<\/p>\n<p>1 ) As root user <\/p>\n<p> root@root:~#su zimbra<\/p>\n<p>2 ) Now stop the zimbra services <\/p>\n<p> zimbra@zimbra:~$ zmcontrol stop<\/p>\n<p>Now on the New Server which having same os configuration and installed zimbra mail application on it. <\/p>\n<p>B ) Zimbra New server 1 ) As root user : [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[45],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2672"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2672"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2672\/revisions"}],"predecessor-version":[{"id":2673,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2672\/revisions\/2673"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2672"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2672"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2672"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}