Zimbra opensource Hot backup and restore

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
1357shashikant
Posts: 9
Joined: Sat Sep 13, 2014 2:38 am

Zimbra opensource Hot backup and restore

Postby 1357shashikant » Tue Jul 17, 2012 7:45 am

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


halley
Advanced member
Advanced member
Posts: 50
Joined: Fri Sep 12, 2014 11:48 pm

Zimbra opensource Hot backup and restore

Postby halley » Tue Jul 17, 2012 1:15 pm

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
1357shashikant
Posts: 9
Joined: Sat Sep 13, 2014 2:38 am

Zimbra opensource Hot backup and restore

Postby 1357shashikant » Tue Jul 24, 2012 1:31 am

Dear Friend

i will send document
yaboc
Posts: 5
Joined: Sat Sep 13, 2014 12:03 am

Zimbra opensource Hot backup and restore

Postby yaboc » Wed Jul 25, 2012 1:32 am

dear god. please complete the post.
rtoliveira
Posts: 4
Joined: Sat Sep 13, 2014 2:06 am

Zimbra opensource Hot backup and restore

Postby rtoliveira » Thu Sep 06, 2012 6:48 pm

I downloaded the src from https://github.com/bggo/Zmbkpose . It seems works fine! I will test it next days.
bma
Posts: 18
Joined: Sat Sep 13, 2014 12:29 am

Zimbra opensource Hot backup and restore

Postby bma » Wed Feb 06, 2013 8:21 am

[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
rtoliveira
Posts: 4
Joined: Sat Sep 13, 2014 2:06 am

Zimbra opensource Hot backup and restore

Postby rtoliveira » Wed Feb 13, 2013 10:04 am

[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
bma
Posts: 18
Joined: Sat Sep 13, 2014 12:29 am

Zimbra opensource Hot backup and restore

Postby bma » Sun Feb 17, 2013 8:13 am

[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
ymarinov
Posts: 37
Joined: Sat Sep 13, 2014 2:41 am

Zimbra opensource Hot backup and restore

Postby ymarinov » Fri Feb 22, 2013 4:55 am

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?
rtoliveira
Posts: 4
Joined: Sat Sep 13, 2014 2:06 am

Zimbra opensource Hot backup and restore

Postby rtoliveira » Fri Feb 22, 2013 11:19 am

Did you try to restore user preferences using ldif backups?

Return to “Administrators”

Who is online

Users browsing this forum: No registered users and 19 guests