Created
November 1, 2016 12:14
-
-
Save aryulianto/c71dae3994ab7e0d7f680c865498395b to your computer and use it in GitHub Desktop.
script restore the backup mailboxes with zmmailbox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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