Difference between revisions of "Take backup of zimbra server"

From Notes_Wiki
(Created page with "<yambe:breadcrumb>Zimbra_server_configuration|Zimbra</yambe:breadcrumb> =Take backup of zimbra server= To take backup of Zimbra server use following steps: # Use "df -h" to c...")
 
m
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<yambe:breadcrumb>Zimbra_server_configuration|Zimbra</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Zimbra server configuration]] > [[Take backup of zimbra server]]
=Take backup of zimbra server=
 
'''There is updated version of article at [[CentOS 7.x Zimbra backup and restore]]'''


To take backup of Zimbra server use following steps:
To take backup of Zimbra server use following steps:
Line 6: Line 7:
# Rsync /opt/zimbra to backup folder.  This rsync should be done without stopping Zimbra.  This is intended to reduce overall backup down-time
# Rsync /opt/zimbra to backup folder.  This rsync should be done without stopping Zimbra.  This is intended to reduce overall backup down-time
#:<pre>
#:<pre>
#::rsync -vtrp --delete /opt/zimbra /backup/zimbra-yyyy-mm-dd
#::rsync -vtrp --delete --sparse /opt/zimbra /backup/zimbra-yyyy-mm-dd
#:</pre>
#:</pre>
# Stop running zimbra server by running '<tt>zmcontrol stop</tt>' as user zimbra
# Stop running zimbra server by running '<tt>zmcontrol stop</tt>' as user zimbra
Line 13: Line 14:
# Start zimbra again by using '<tt>zmcontrol start</tt>' command as zimbra user  
# Start zimbra again by using '<tt>zmcontrol start</tt>' command as zimbra user  


Other backup suggestions are present at https://wiki.zimbra.com/wiki/Open_Source_Edition_Backup_Procedure and also at http://wiki.zimbra.com/wiki/Backing_up_and_restoring_Zimbra_%28Open_Source_Version%29#Another_option
Other backup suggestions are present at  
* https://wiki.zimbra.com/wiki/Open_Source_Edition_Backup_Procedure#A_Simple_Shell_Script_Method  (Most preferable and simple)
* https://wiki.zimbra.com/wiki/Open_Source_Edition_Backup_Procedure  (Other options)
* http://wiki.zimbra.com/wiki/Backing_up_and_restoring_Zimbra_%28Open_Source_Version%29#Another_option
 
 
==Restoring Zimbra from full file level backup==
 
To restore Zimbra from full file level backup to the following:
<pre>
mv /opt/zimbra /opt/old-zimbra
rsync <backup> /opt/zimbra  #mv or cp instead of rsync as appropriate
chown -R zimbra:zimbra /opt/zimbra
/opt/zimbra/libexec/zmfixperms
</pre>
 
After this download the same version of Zimbra that was installed.  It is important to remember the version number or not delete the installation directory.  Again do './install.sh' of same version.
 
'''Do not use './install.sh -u' because all data would be lost'''.
 
Refer:
* https://wiki.zimbra.com/wiki/Backing_up_and_restoring_Zimbra_%28Open_Source_Version%29
* https://wiki.zimbra.com/wiki/Open_Source_Edition_Backup_Procedure#Restore_to_Existing.2FBackup_Zimbra_Server
 
 
 
 
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Zimbra server configuration]] > [[Take backup of zimbra server]]

Latest revision as of 10:36, 14 July 2022

Home > CentOS > CentOS 6.x > Zimbra server configuration > Take backup of zimbra server

There is updated version of article at CentOS 7.x Zimbra backup and restore

To take backup of Zimbra server use following steps:

  1. Use "df -h" to check space occupied by all files stored in /opt. Verify that enough space is free on destination drive. Note that same set of files may occupy different space on a different file-system (ext3 to ext4)
  2. Rsync /opt/zimbra to backup folder. This rsync should be done without stopping Zimbra. This is intended to reduce overall backup down-time
    rsync -vtrp --delete --sparse /opt/zimbra /backup/zimbra-yyyy-mm-dd
  3. Stop running zimbra server by running 'zmcontrol stop' as user zimbra
  4. Verify that all Zimbra processes have stopped using 'ps -U zimbra -u zimbra'
  5. Again rsync /opt/zimbra to backup folder. This time backup would be consistent / stable.
  6. Start zimbra again by using 'zmcontrol start' command as zimbra user

Other backup suggestions are present at


Restoring Zimbra from full file level backup

To restore Zimbra from full file level backup to the following:

mv /opt/zimbra /opt/old-zimbra
rsync <backup> /opt/zimbra   #mv or cp instead of rsync as appropriate
chown -R zimbra:zimbra /opt/zimbra
/opt/zimbra/libexec/zmfixperms

After this download the same version of Zimbra that was installed. It is important to remember the version number or not delete the installation directory. Again do './install.sh' of same version.

Do not use './install.sh -u' because all data would be lost.

Refer:



Home > CentOS > CentOS 6.x > Zimbra server configuration > Take backup of zimbra server