Page 1 of 2

Zimbra opensource Hot backup and restore

Posted: Tue Jul 17, 2012 7:45 am
by 1357shashikant
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

Zimbra opensource Hot backup and restore

Posted: Tue Jul 17, 2012 1:15 pm
by halley
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

Zimbra opensource Hot backup and restore

Posted: Tue Jul 24, 2012 1:31 am
by 1357shashikant
Dear Friend

i will send document

Zimbra opensource Hot backup and restore

Posted: Wed Jul 25, 2012 1:32 am
by yaboc
dear god. please complete the post.

Zimbra opensource Hot backup and restore

Posted: Thu Sep 06, 2012 6:48 pm
by rtoliveira
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

Posted: Wed Feb 06, 2013 8:21 am
by bma
[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

Zimbra opensource Hot backup and restore

Posted: Wed Feb 13, 2013 10:04 am
by rtoliveira
[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

Zimbra opensource Hot backup and restore

Posted: Sun Feb 17, 2013 8:13 am
by bma
[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

Zimbra opensource Hot backup and restore

Posted: Fri Feb 22, 2013 4:55 am
by ymarinov
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?

Zimbra opensource Hot backup and restore

Posted: Fri Feb 22, 2013 11:19 am
by rtoliveira
Did you try to restore user preferences using ldif backups?