|
| ZCS Administrator's Guide Network Edition 6.0, Rev 1 |
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.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.You can change the backup schedule using the zmschedulebackup command.
• minute — 0 through 59
• hour — 0 through 23
• day of month — 1 through 31
• month — 1 through 12
• day of week — 0 through 7 (0 or 7 is Sunday, or use names)
• Replace the existing full backup, incremental backup and delete backup schedule. When you use -R, the complete backup schedule is replaced. If you use this command, remember to set the delete schedule, if you want backup sessions to be scheduled for automatic deletion. This example replaces the existing schedule to have full backups run on Sunday at 1 a.m., incremental backups to run Monday through Saturday at 1 a.m., and old backups deleted at 12:00 a.m. every day.
• Add an additional full backup time to your current schedule. This example adds a full backup on Thursday at 1 a.m.
• Save the schedule command to a text file. This would allow you to easily recreate the same schedule after reinstall or upgradeNote: If you change the default schedule and want to return to it, enter the command zmschedulebackup -D.
• 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.
The asterisk character works as a wild card, representing every occurrence of the field’s value.A backup report is sent to the admin mailbox when full and incremental backups are performed. This report shows the success or failure of the backup and includes information about when the backup started and ended, the number of accounts backed up and redo log sequence range.You can add additional recipient addresses or change the notification email address in the administration console Global Settings, Backup/Restore tab.The full backup process goes through the following steps to backup the mailbox, the database, the indexes, and the LDAP directory:
1.
2. Iterates through each account to be backed up and backs up the LDAP entries for those accounts.
3. Places the account’s mailbox in maintenance mode to temporarily block mail delivery and user access to that mailbox.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.Incremental backups are run using the CLI command, zmbackup. The process for incremental backup is as follows:
2. Iterates through each account to be backed up and backs up the LDAP entries for those accounts.
3. Moves the archive redo logs, created since the last backup, to the <backup target>/redologs directory.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.
• Perform incremental backup of all mailboxes on server1 since last full backup
•
• 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.zmbackup -del 7d deletes backups older than 7 days from now. You can specify day (d), month (m), or year (y).Each run of full or incremental backup creates a backup session, also known as the backup set.The zmbackupquery command is used to find full backup sets. Each backup session is automatically labeled by 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 times set in the session label are GMT, not the local time. GMT is used rather than local time to preserve visual ordering across daylight savings transitions.zmbackupquery -a user1@example.com --type full --from “2007/07/05 12:01:15” --to “2007/07/12 17:01:45”Note: If a backup session is interrupted because the server crashes during backup (not aborted), the backup session that was interrupted was saved as a temporary session. The temporary backup session can be found at <backup target>/sessions_tmp directory. You can use the rm command to delete the directory.
|
| ZCS Administrator's Guide Network Edition 6.0, Rev 1 |