Zimbra opensource Hot backup and restore
-
- Posts: 9
- Joined: Sat Sep 13, 2014 2:38 am
Zimbra opensource Hot backup and restore
Dear All,
I have successfully taken hot backup and restore of zimbra open source 7.2.0
Please find the steps
Setp 1
vi /etc/zmbkpose.conf and paste bellow script
Note:- please type correct zimbra admin user credentials and zimbra ldap root password and IP
# Config file for Zimbra Opensource Edition backup script
# Lines starting with # will be ignored
# Values must be filled without spaces, quotes or special characters
# User with privileges to run the script and read and write in the working directory
# TODO: PORTA=[HTTP|
BACKUPUSER=zimbra
># Working directory where temporary and definitive sessions will be created, containing users's content and attributes
# # Sensitive content. Directory *must* have restricted access to BACKUPUSER
WORKDIR=/opt/zimbra/backup
# Mailbox Serve Name or IP address
# This value will be get by zimbraMailHost attribute of each account, providing mailboxes in a distributed deployment
# Only set this parameter if you are forcing restore on a server other than the original
# MAILBOXSERVERNAME=
# Must be filled with User Global Administrator's e-mail, possibly admin@example.com
# TIP: If Administrator account is unknown or nonexistent, one must be created through Zimbra server's command line
# # zmprov ca novoadmin@exemplo.com "senha"
# # zmprov ma novoadmin@exemplo.com zimbraIsAdminAccount TRUE
ADMINUSER=admin
# Deve ser preenchido com a senha do usuario administrador definido em ADMINUSER
# Must be filled with the User Global Administrator's password defined in ADMINUSER
ADMINPASS=secret
# Must be filled with URL of LDAP MASTER
LDAPMASTERSERVER=ldap://192.168.0.107:389
# Must be filled with zimbra_ldap_userdn key value
# TIP: To get this value, execute on Zimbra Server
# # zmlocalconfig zimbra_ldap_userdn
LDAPZIMBRADN=uid=zimbra,cn=admins,cn=zimbra
# Must be filled with zimbra_ldap_password key value
# TIP: To get this value, execute on Zimbra Server
# # zmlocalconfig -s zimbra_ldap_password
LDAPZIMBRAPASS=Hg_lfSEA
# Path to backup and restore log file
LOGFILE=/opt/zimbra/log/backup.log
# Support to parallel accounts backup
#PARALLEL_SUPPORT - 0 = Off 1 = On
PARALLEL_SUPPORT=0
# Max simultaneous processes - if PARALLEL_SUPPORT=1
# 2 - 5
MAX_PARALLEL_PROCESS=3
I have successfully taken hot backup and restore of zimbra open source 7.2.0
Please find the steps
Setp 1
vi /etc/zmbkpose.conf and paste bellow script
Note:- please type correct zimbra admin user credentials and zimbra ldap root password and IP
# Config file for Zimbra Opensource Edition backup script
# Lines starting with # will be ignored
# Values must be filled without spaces, quotes or special characters
# User with privileges to run the script and read and write in the working directory
# TODO: PORTA=[HTTP|
BACKUPUSER=zimbra
># Working directory where temporary and definitive sessions will be created, containing users's content and attributes
# # Sensitive content. Directory *must* have restricted access to BACKUPUSER
WORKDIR=/opt/zimbra/backup
# Mailbox Serve Name or IP address
# This value will be get by zimbraMailHost attribute of each account, providing mailboxes in a distributed deployment
# Only set this parameter if you are forcing restore on a server other than the original
# MAILBOXSERVERNAME=
# Must be filled with User Global Administrator's e-mail, possibly admin@example.com
# TIP: If Administrator account is unknown or nonexistent, one must be created through Zimbra server's command line
# # zmprov ca novoadmin@exemplo.com "senha"
# # zmprov ma novoadmin@exemplo.com zimbraIsAdminAccount TRUE
ADMINUSER=admin
# Deve ser preenchido com a senha do usuario administrador definido em ADMINUSER
# Must be filled with the User Global Administrator's password defined in ADMINUSER
ADMINPASS=secret
# Must be filled with URL of LDAP MASTER
LDAPMASTERSERVER=ldap://192.168.0.107:389
# Must be filled with zimbra_ldap_userdn key value
# TIP: To get this value, execute on Zimbra Server
# # zmlocalconfig zimbra_ldap_userdn
LDAPZIMBRADN=uid=zimbra,cn=admins,cn=zimbra
# Must be filled with zimbra_ldap_password key value
# TIP: To get this value, execute on Zimbra Server
# # zmlocalconfig -s zimbra_ldap_password
LDAPZIMBRAPASS=Hg_lfSEA
# Path to backup and restore log file
LOGFILE=/opt/zimbra/log/backup.log
# Support to parallel accounts backup
#PARALLEL_SUPPORT - 0 = Off 1 = On
PARALLEL_SUPPORT=0
# Max simultaneous processes - if PARALLEL_SUPPORT=1
# 2 - 5
MAX_PARALLEL_PROCESS=3
Zimbra opensource Hot backup and restore
Friend,
and where the backup is saved? I did not see option to save the backup to another machine on the network.
if my zimbra server dies I can install on another machine and restore all accounts?
thank you friend
and where the backup is saved? I did not see option to save the backup to another machine on the network.
if my zimbra server dies I can install on another machine and restore all accounts?
thank you friend
-
- Posts: 9
- Joined: Sat Sep 13, 2014 2:38 am
Zimbra opensource Hot backup and restore
Dear Friend
i will send document
i will send document
Zimbra opensource Hot backup and restore
dear god. please complete the post.
-
- Posts: 4
- Joined: Sat Sep 13, 2014 2:06 am
Zimbra opensource Hot backup and restore
I downloaded the src from https://github.com/bggo/Zmbkpose . It seems works fine! I will test it next days.
Zimbra opensource Hot backup and restore
[quote user="rtoliveira"]I downloaded the src from https://github.com/bggo/Zmbkpose . It seems works fine! I will test it next days.[/QUOTE]
Please report back your test result.
Thanks
Please report back your test result.
Thanks
-
- Posts: 4
- Joined: Sat Sep 13, 2014 2:06 am
Zimbra opensource Hot backup and restore
[quote user="bma"]Please report back your test result.
Thanks[/QUOTE]
Dear bma,
these scripts worked fine until now! We are using it in backup and restore procedures successfully!
My environment: ~20000 accounts (mailbox size ranging between 1GB and 10GB) distributed along 6 mailbox servers.
[]'s
Rommel Oliveira
Thanks[/QUOTE]
Dear bma,
these scripts worked fine until now! We are using it in backup and restore procedures successfully!
My environment: ~20000 accounts (mailbox size ranging between 1GB and 10GB) distributed along 6 mailbox servers.
[]'s
Rommel Oliveira
Zimbra opensource Hot backup and restore
[quote user="rtoliveira"]Dear bma,
these scripts worked fine until now! We are using it in backup and restore procedures successfully!
My environment: ~20000 accounts (mailbox size ranging between 1GB and 10GB) distributed along 6 mailbox servers.
[]'s
Rommel Oliveira[/QUOTE]
Thanks a lot for your reply Rommel.
I will try the script.
Regards,
bma
these scripts worked fine until now! We are using it in backup and restore procedures successfully!
My environment: ~20000 accounts (mailbox size ranging between 1GB and 10GB) distributed along 6 mailbox servers.
[]'s
Rommel Oliveira[/QUOTE]
Thanks a lot for your reply Rommel.
I will try the script.
Regards,
bma
Zimbra opensource Hot backup and restore
I think that this script is working pretty fine (testing it on 8.0.0 on CentOS 6.3 x64). There is only one thing that I miss: once a mailbox is restored, it seems that the preferences for this mailbox are not restored (i.e. message filters, sms reminder settings, signatures)
Is there any way to backup user's preferences for their mailbox as well?
Is there any way to backup user's preferences for their mailbox as well?
-
- Posts: 4
- Joined: Sat Sep 13, 2014 2:06 am
Zimbra opensource Hot backup and restore
Did you try to restore user preferences using ldif backups?