Quote:
Originally Posted by sternfan Hi all,
New to all of this, so please bear with me
Could someone please post a "Backup Basics" for the Open Source edition?
I found the zmbackup command in the manuals and have a few questions... - What is the first step in backing up? Do I have to shut down any services? Will the services restart after the backup?
- Is there an indicator that the backup was successful?
- I notice the backups go to zimbra_home/backup directory. Is it OK to manually copy the contents of this directory to a network drive on another server? Will the next backup overwrite or will there be two backups in the zimbra_home/backup directory?
- Does the zmbackup command cover everything needed for a restore? Or do I have to do other backups for things such as MySql etc?
Thanks,
Rob |
Hi Rob,
Zimbra Open Source does not come with the zmbackup command. "zmbackup" is bundled with Zimbra Network Edition.
You need not stop Zimbra if you use zmbackup, however, from all the known strategies for backing up Zimbra Open Source, you must stop Zimbra (that is, take a Cold backup).
If you use zmbackup, the indicator is the name of backup given by the command on STDOUT (If there are any errors, they are reported, too). If you do a Cold backup of Zimbra Open Source, you are using system utilities (such as, "rsync") and thus, the errors will be reported by these utilities.
If you are using zmbackup, you can also list out the completed backups by using the command zmbackupquery. For Cold backup of Zimbra Open Source, you have no such utility (except, the "ls" command).
zmbackup, done from command-line includes everything - no need to backup MySQL, etc. separately. Cold backup also includes everything.
Cold Backup Basics:
1. Stop all Zimbra Services
2. Ensure all services are stopped or kill them gracefully (don't use kill -9)
3. Once all Zimbra services are stopped, rsync them (/opt/zimbra) to some other path - maintaining ownerships, permissions, symlinks, hard links, etc.
4. Start Zimbra
5. Done!
Cold Backup Restoration Basics:
1. Stop Zimbra
2. mv _OR_ rm -rf /opt/zimbra
3. Copy the backed up Zimbra directory to /opt/zimbra
4. Start Zimbra
Common Issues:
If something doesn't start, run /opt/zimbra/libexec/zmfixperms
This will fix all permissions.
If Tomcat doesn't start, please check /opt/zimbra/tomcat/logs/catalina.out
The log in this is generally understandable.
Make sure:
1. The hostname of the system on which restoration is to be done is the same as the hostname of the system on which backup was taken.
2. Zimbra is installed on the system on which restoration is to be done. If not, restoration will not work.
Others:
I am not aware if rsync-ing to the same backup directory more than once, will works. This must be tested. So, I would add, backup to a different directory everytime and rotate backups to save space.