ZCS Administrator's Guide 8.0.4
ZCS Administrator's Guide 8.0.4
Network Edition


Backup and Restore > Backing up using the Standard Method

Backing up using the Standard Method
When you initiate a backup, you can issue the command from the same server being backed up, run the command remotely and specify the target server on the command line, or use the administration console to start a backup session.
Scheduling a Standard Backup
When ZCS was installed, the backup schedule for the standard method of full and incremental backups was added to the crontab. Under the default schedule, the full backup is scheduled for 1:00 a.m., every Saturday. The incremental backups are scheduled for 1:00 a.m., Sunday through Friday.
By default, backups older than a month are deleted every night at 12 a.m.
You can change the backup schedule using the zmschedulebackup command.
Specify the fields as follows, separate each field with a blank space:
*
*
*
*
*
Type an asterisk (*) in the fields you are not using.
Example of zmschedulebackup options
*
zmschedulebackup -R f “0 1 * * 7” i “0 1 * * 1-6” d “0 0 * * *”
*
zmschedulebackup -A f “0 1 * * 4”
*
zmschedulebackup -q
*
zmschedulebackup -s
Note:
Default Standard Backup Schedule
The default backup schedule looks like this in the cron table:
 
Read as follows:
*
0 1 * * * 6 /opt/zimbra/bin/zmbackup -f - all means that the full backup runs on 1 a.m. on Saturdays.
*
0 1* * 0-5 /opt/zimbra/bin/zmbackup -i means that an incremental backup runs at 1 a.m. from Sunday through Friday.
*
0 0 * * * /opt/zimbra/bin/zmbackup -del 1m means that backup sessions are deleted at midnight 1 month after they were created.
 
You can add additional recipient addresses or change the notification email address in the administration console Global Settings>Backup/Restore page.
Full Backup Process
The full backup process goes through the following steps to backup the mailbox, the database, the indexes, and the LDAP directory:
1.
2.
3.
4.
a.
b.
c.
5.
6.
Full backup is usually run asynchronously. When you begin the full backup, the label of the ongoing backup process is immediately displayed. The backup continues in the background. You can use the zmbackupquery command to check the status of the running backup at any time.
Backup files are saved as zip files without compression. To change the default zip option, see Appendix A Command Line Interface, zmbackup section.
Incremental Backup Process
Incremental backups are run using the CLI command, zmbackup. The process for incremental backup is as follows:
1.
2.
3.
Archived logs that are less than an hour old at the time of incremental backup are copied to the backup and are not deleted. These redologs are deleted one hour after the backup. The interval is set by the localconfig key backup_archived_redolog_keep_time. The default is 3600 seconds.
If no full backup for this account is found, the backup process performs a full backup on this account, even if only an incremental backup was specified.
4.
Perform Manual Backups
*
zmbackup -f -s server1.domain.com -a all
*
zmbackup -i -s server1.domain.com -a all
*
Manually backup full backup of only user1’s mailbox on server1
zmbackup -f -s server1.domain.com -a user1@domain.com
Delete Backup Sessions
Delete backup sessions either by label or by date. Deleting by label deletes that session and all backup sessions before that session. Deleting by date deletes all backup session prior to the specified date.
For example, zmbackup -del 7d deletes backups older than 7 days from now. You can specify day (d), month (m), or year (y).
Find a Specific Backups
Each full or incremental backup is a backup session.
Each backup session is labeled with date and time. For example, the label full-20070712.155951.123 says this is a backup from July 12, 2007 at 3:59:51.123.
Note:
The zmbackupquery command is used to find full backup sessions.
*
zmbackupquery -lb full-20070712.155951.123
*
zmbackupquery --type full --from “2007/01/01 12:45:45”
*
zmbackupquery --type full
*
zmbackupquery -a user1@example.com --type full --from “2007/07/05 12:01:15” --to “2007/07/12 17:01:45”
Note:
Copyright © 2013 VMware Inc.