CLI - zmbackup Network Edition Only: Difference between revisions

(→‎Related Articles: Adding category)
No edit summary
(10 intermediate revisions by 6 users not shown)
Line 1: Line 1:
For the most recent information on this CLI, including syntax and description, see [http://www.zimbra.com/docs/ne/latest/administration_guide/A_app-command-line.20.1.html ZCS Administrator's Guide Network Edition > Appendix A Command-Line Utilities].
{{BC|Certified}}
__FORCETOC__
<div class="col-md-12 ibox-content">
=CLI zmbackup Network Edition Only=
{{KB|{{ZC}}|{{ZCS 7.0}}|{{ZCS 6.0}}|}}
{{Archive}}{{WIP}}
For the most recent information on this CLI, including syntax and description, see [http://files.zimbra.com/website/docs/7.2/Zimbra_NE_Admin_Guide_7.2.7.pdf ZCS Administrator's Guide Network Edition] and see the Appendix A - Command-Line Utilities.


=ZCS 6.0.x=
=ZCS 6.0.x=
Line 27: Line 33:
|style="background=white" |<nowiki>--delete</nowiki>
|style="background=white" |<nowiki>--delete</nowiki>
|<nowiki>-del</nowiki>
|<nowiki>-del</nowiki>
|'''<arg>''' Deletes the backups including and prior to the specified label, date (YYYY/MM/DD[-hh:mm:ss]) or period (nn(d|m|y]).
|'''<arg>''' Deletes the backups including and prior to the specified label, date <nowiki>(YYYY/MM/DD[-hh:mm:ss]) or period (nn(d|m|y])</nowiki>.
|-
|-
|style="background=white" |<nowiki>--fullBackup</nowiki>
|style="background=white" |<nowiki>--fullBackup</nowiki>
Line 55: Line 61:
|style="background=white" |<nowiki>--zip</nowiki>
|style="background=white" |<nowiki>--zip</nowiki>
|<nowiki>-z</nowiki>
|<nowiki>-z</nowiki>
|Zips email blobs in backup
|Backs up blobs in compressed zip files.  Ignored if --zipStore is specified.
|-
|-
|style="background=white" |<nowiki>--zipstore</nowiki>
|style="background=white" |<nowiki>--zipStore</nowiki>
|<nowiki></nowiki>
|<nowiki></nowiki>
|Stores blobs uncompressed when --zip option is used.
|Backup up blobs in zip files without compression. (default)
|-
|style="background=white" |<nowiki>--noZip</nowiki>
|<nowiki></nowiki>
|No zip or compression. (old behavior, hardlinks)
|}
|}


===Examples===
===Examples===
Line 77: Line 86:


  zmbackup -f -a user1@domain.com -s server1
  zmbackup -f -a user1@domain.com -s server1
*Perform incremental backup of user1’s mailbox on server1
zmbackup -i -a user1@domain.com -s server1


=ZCS 5.0.x=
=ZCS 5.0.x=
Line 107: Line 112:




{{Article Footer|ZCS 6.0.x|5/2/2006}}
{{Article Footer|Zimbra Collaboration 7.0, 6.0|5/2/2006}}


[[Category:Backup and Restore]]
[[Category:Backup and Restore]]
[[Category:Command Line Interface]]
[[Category:Command Line Interface]]
[[Category:ZCS 7.0]]
[[Category:ZCS 6.0]]
[[Category:ZCS 6.0]]
[[Category:ZCS 5.0]]
[[Category:ZCS 4.5]]

Revision as of 15:49, 11 July 2015

CLI zmbackup Network Edition Only

   KB 1482        Last updated on 2015-07-11  




0.00
(0 votes)

For the most recent information on this CLI, including syntax and description, see ZCS Administrator's Guide Network Edition and see the Appendix A - Command-Line Utilities.

ZCS 6.0.x

zmbackup

This tool performs full backups and incremental backups for a designated mail host. This utility has short option names and full names. The short option is preceded by a single dash, while the full option is preceded by a double dash. For example, -f is the same as --fullBackup.

Syntax

One of -f, -i, or -del must be specified.

zmbackup {-f | -i | del} {-a <arg>} [options]

Description

Long Name Short Name Description
--account -a <arg> Account email addresses separated by white space or all for all accounts. This option is not specified for auto-grouped backups since the system knows which accounts to backup every night.
--debug -d Display diagnostics for debugging purposes.
--delete -del <arg> Deletes the backups including and prior to the specified label, date (YYYY/MM/DD[-hh:mm:ss]) or period (nn(d|m|y]).
--fullBackup -f Starts a full backup. In auto-grouped backup mode, this option also copies the redologs since the last backup (which is the main function of an incremental backup).
--help -h Displays the usage options for this command.
--incrementalBackup -i Starts an incremental backup. This option is not available in the auto-grouped backup mode.
--server -s <arg> Mail server host name. For format, use either the plain host name or the server.domain.com name. The default is the localhost name.
--sync -sync Runs full backup synchronously.
--target -t <arg> Specifies the target backup location. The default is <zimbra_home>/backup.
--zip -z Backs up blobs in compressed zip files. Ignored if --zipStore is specified.
--zipStore Backup up blobs in zip files without compression. (default)
--noZip No zip or compression. (old behavior, hardlinks)

Examples

In these examples, the server (-s) is server1.domain.com. The (-t) is not required if the target is the default directory, (zimbra_home/backup).

  • Perform a full backup of all mailboxes on server1
zmbackup -f -a all -s server1.domain.com
  • Perform incremental backup of all mailboxes on server1 since last full backup
zmbackup -i -a all -s server1.domain.com
  • Perform full backup of only user1’s mailbox on server1. Note that hostname does not need full domain if account is used.
zmbackup -f -a user1@domain.com -s server1

ZCS 5.0.x

ZCS 4.5.x

Notes

Resulting backup sessions make use of hard links to previous backup sessions to save space on the filesystem. Take this into account when performing tape backups and when foreseeing disk usage, eg.:

[zimbra@gw1a ~]$ cd /opt/zimbra/backup/sessions
[zimbra@gw1a sessions]$ du -sh full-20080805.101920.991
75G     full-20080805.101920.991
[zimbra@gw1a sessions]$ du -sh *full*
75G     full-20080801.230004.637
2.5G    full-20080805.101920.991
[zimbra@gw1a sessions]$ du -shl *full*
75G     full-20080801.230004.637
75G     full-20080805.101920.991


Related Articles

  • zmschedulebackup - This command is used to schedule backups and add the command to your cron table.


Verified Against: Zimbra Collaboration 7.0, 6.0 Date Created: 5/2/2006
Article ID: https://wiki.zimbra.com/index.php?title=CLI_-_zmbackup_Network_Edition_Only Date Modified: 2015-07-11



Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »

Jump to: navigation, search