Skip to content

Instantly share code, notes, and snippets.

@aryulianto
Created November 1, 2016 12:14
Show Gist options
  • Save aryulianto/c71dae3994ab7e0d7f680c865498395b to your computer and use it in GitHub Desktop.
Save aryulianto/c71dae3994ab7e0d7f680c865498395b to your computer and use it in GitHub Desktop.
script restore the backup mailboxes with zmmailbox
su - zimbra -c "zmmailbox -z -m username postRestURL '//?fmt=tgz&resolve=reset' folder/file-location.tgz";
## Example: su - zimbra -c "zmmailbox -z -m admin@example.com postRestURL '//?fmt=tgz&resolve=reset' /srv/backup/20150128/admin@example.com.tgz";
## resolve = reset. This parameters will delete mailboxes existing on user and will be changed with mailbox backup. The reset parameter could be changed with skip, replace, modify.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment