lucascbeyeler/zmbackup

Backup and restore to another mb server

HcKTR opened this issue · 6 comments

HcKTR commented

Hello, I am using the latest version of zmbackup.
zmbackup version: 1.2.5
Release 8.8.8_GA_2009.RHEL7_64_20180322150747 RHEL7_64 FOSS edition.
One of my Mailbox servers is about to have a full disk. After I backup some accounts with zmbackup, I want to delete them from mailbox1 server and return to mailbox2 server from backup. How can I do it?

Hello,

1 - Use the 1.2.6 for that... it's more stable for that activity.

2 - Why not use live_sync instead? As far as I know, would take you less effort than create the backup, copy to another server, and them upload the copy.

Live Sync: https://wiki.zimbra.com/wiki/Server_Live_sync

HcKTR commented

Hello,

1 - Use the 1.2.6 for that... it's more stable for that activity.

2 - Why not use live_sync instead? As far as I know, would take you less effort than create the backup, copy to another server, and them upload the copy.

Live Sync: https://wiki.zimbra.com/wiki/Server_Live_sync

Hello, thank you for your answer. I just started using Zimbra and I have difficulty with some issues. I have a system with 2 proxies, 2 ldap, 3 mysql, 5 mb and 4 mta. I have reviewed the server live sync document, but I do not fully understand which servers to install. I didn't want to try it on mailbox servers, because i thought it would cause problems in the system. I don't want to process without knowing what to do.
For now, I will do a process through your zmbackup to avoid problems.
I know that server live sync is not related to you, but I would be very grateful if you give any hints about it.
I will share the actions I have done in case other friends are having this problem like me.

Hey,

I would say go ahead with zmbackup... it will be easier. Install inside the same server you have zmmailbox CLI. It´s required because the Zimbra API is not working for a long time for backup and the only way we found to download the mailbox was using the zmmailbox. That server also needs to have access to the LDAP server.

Just download the mailbox using zmbackup, move to the new server, and restore also using zmbackup.

Regards,
Lucas Costa Beyeler

HcKTR commented

Hey,

I would say go ahead with zmbackup... it will be easier. Install inside the same server you have zmmailbox CLI. It´s required because the Zimbra API is not working for a long time for backup and the only way we found to download the mailbox was using the zmmailbox. That server also needs to have access to the LDAP server.

Just download the mailbox using zmbackup, move to the new server, and restore also using zmbackup.

Regards,
Lucas Costa Beyeler

Hi Lucas,
I installed zmbackup on my mailbox server. This server is my backup server. After I get the backup, I will go to my other mailbox server and try to restore the backup.

I deleted the "/etc/cron.d/zmbackup" file after zmbackup installation. Because my ldap server is doing backups. I will tell you step by step this process I live. If you have permission, I want to share it on my blog.

Now I can't get my backup with this command. I will read your other posts and keep trying. If there is any improvement, I will edit my article.
#154 (comment)
[zimbra@zm-mb4 zmbackup]$ zmbackup -r -m mail@mail.com
Nothing to do. Closing...
[zimbra@zm-mb4 zmbackup]$ zmbackup -v
zmbackup version: 1.2.6

HcKTR commented

I couldn't do it with zmbackup, but I think I succeeded in the steps I did below. Mails were successfully added and I successfully sent and received mails.

1- Mailbox1 server:
root login:

  • mkdir /backup
  • chown zimbra.zimbra /backup
  • su zimbra
  • zmmailbox -z -m mail@mail.com getRestURL "//?fmt=tgz" > /backup/mail@mail.com

2- Go to Zimbra Admin:

3- Mailbox2 server:

4- Go to Zimbra Admin

I think it happened what I wanted. Can I make this process easier using zmbackup? I know I ask a lot of questions, but I really want to learn. Thank you very much for your help.

Hey @HcKTR

Yeah... it´s basically zmbackup with the option -m