• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to take mailbox backup of Zimbra Account from CLI

by admin

A system administrator’s worst nightmare is the call, page, text message, or any other alarm informing you that the server is down. Especially when the server is very critical and instrumental to the organization, like a Zimbra Mail Server. This post discusses the backup and restores procedure of a Zimbra Account.

Mailbox backup from CLI Zimbra

1. Create a directory where you want to take backup:

# chmod 777 /backup

or:

# chown zimbra.zimbra /backup

2. Login from zimbra user and run below command to Export/Backup user mailbox:

# su - zimbra
$ zmmailbox -z -m user@example.com getRestURL "//?fmt=tgz" > /backup/user@example.com.tar.gz

Restore/Import Zimbra Mailbox backup

You can restore the Zimbra Mailbox from the backup taken as per above section. To restore a Zimbra Mailbox backup:

$ zmmailbox -z -m user@example.com postRestURL "//?fmt=tgz&resolve=reset" /backup/user@example.com.tar.gz
Note: You can change username and backup location as per your setup.

Filed Under: Linux

Some more articles you might also be interested in …

  1. Unable To Join Linux Samba Server To Windows Active Directory Domain
  2. How to copy directories recursively using rsync while excluding specific files
  3. logrotate Command Examples in Linux
  4. bsdtar command – Read and write tape archive files
  5. vnstat Command Examples in Linux
  6. How to Remove Network Printer in CentOS/RHEL
  7. kwriteconfig5: command not found
  8. CentOS / RHEL : How to find RPM installation date and time
  9. flex: Lexical analyzer generator (Based on lex)
  10. fprintd-enroll Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • glab Command Examples
  • “glab repo” Command Examples
  • “glab release” Command Examples
  • “glab pipeline” Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright