Difference between revisions of "Moving ZCS to New Server"

(Two ways to move ZCS setup from your existing server to new server:)
(Redirected page to ZCS to ZCS rsync Migration)
 
(21 intermediate revisions by 9 users not shown)
Line 1: Line 1:
==Two ways to move ZCS setup from your existing server to new server:==
+
#REDIRECT [[ZCS_to_ZCS_rsync_Migration]]
 
 
<u>'''Method For Network Edition Customer:'''</u>
 
If you are moving to new server and have latest backup with you then you should follow these steps:
 
 
 
* Install a new server. Keep the "hostname" and "zmhostname" same as old server.
 
* Take a latest full backup and after taking a full backup also take a incremental backup in your current running server. Running an incremental backup will copy the redologs and the backup will be up to date.
 
* Install the same version of ZCS which is running on your current system.
 
* Copy /opt/zimbra/backup directory from the old server to the new server in the same location.
 
* Now restore the data on new server using "zmrestore" command as follows:
 
    $ zmrestoreldap -lb <label> ( Label of latest full backup )
 
    If you are restoring large number of accounts, you may want to run this command with nohup so that the session does not terminate. (Observe whether the LDAP server is started
 
    successfully after the restore, it must be running for the next steps).
 
    Note: To find the LDAP session label to restore, type zmrestoreldap –lbs.
 
    $ zmrestore -sys -ra -a all -c
 
 
 
    After issuing this command the data will get restored properly and if any error occurs it will be prompted after the process is completed.
 
    You will get an notification that admin and wiki accounts are not restore, which you have to restore manually after this, as follows:
 
    $ zmrestore -a admin@yourdomain.com
 
    $ zmrestore -a wiki@yourdomain.com
 
 
 
 
 
<u>'''Method For Open Source Edition Users:'''</u>
 
Second method which you can follow is using rsync command, here are the steps:
 
 
 
<u>'''If and only if the Operating System is going to be same on both old and new server:'''</u>
 
* Stop your existing ZCS using "zmcontrol stop".
 
* Check if no zimbra process is running if so kill that process.
 
* Do a cold and offline backup of /opt/zimbra directory using rsync command:
 
    # rsync -avrlHKpogDt /opt/zimbra /opt/zimbra.bak
 
 
 
* Copy the zimbra.bak file to the new server.
 
* On new server, install the same version of ZCS and Keep the "hostname" and "zmhostname" same as old server.
 
* Stop ZCS on new server using "zmcontrol stop".
 
* Remove the complete zimbra directory:
 
    # rm -rf /opt/zimbra
 
* Restore from cold backup using rsync command:
 
    # rsync -avrlHKpogDt /opt/zimbra.bak /opt/zimbra
 
 
 
 
 
{{Article_Footer|unknown|2/29/2008}}
 

Latest revision as of 16:34, 25 June 2015

Jump to: navigation, search