HOT Backup and HOT Restore: Difference between revisions

No edit summary
No edit summary
 
(31 intermediate revisions by 4 users not shown)
Line 1: Line 1:
= zmbkpose =
{{Archive}}{{Unsupported}}
{{Article Infobox|{{admin}}||{{ZCS 6.0}}|{{ZCS 5.0}}|}}


by Rubens Alonso Filho <rubens@4linux.com.br>
= NOTE =


The zmbkpose tool is a shell script that does hot backup and hot restore of ZCS Opensource accounts


This tool DOES NOT DO disaster recovery.
ZMBKPOSE is a bash script to hot backup and hot restore Zimbra Collaboration Suite Opensource. ZMBKPOSE was first developed by Rubens Alonso Filho and improved by many other people.
 
 
Would be nice if we get some reports to be always improveing the tool,please contact bruno@4linux.com.br, rubens@4linux.com.br, alan.milani@4linux.com.br for bugs, suggestions and others.
 
= GitHub =
 
Since 25/07/2011, this project will be on the github and any contribs are wellcome.


It can run from any host in the net, which means that it can be set on a backup server already existent.
https://github.com/bggo/Zmbkpose


It was concepted after Zimbra released ZCS 5.0.12, where a new import/export feature was exposed to user can be able to do his archiving.
= Releases =


From that point it was clear for me that I just need to write a code to automatically get all user data from server, remotely via HTTP SOAP. Plus LDAP data.
1.0.1 - [[http://wiki.zimbra.com/images/e/ef/Zmbkpose-1.0.1.tar.gz Download]]


So, it is possible to run full backups and restore even deleted accounts.
1.0.5 - [[http://wiki.zimbra.com/images/2/2c/Zmbkpose-1.0.5.tar.gz Download]]


In the version 1.0.0 of zmbkpose, the tool provides:
Inside the package look at the README for instructions.


* Full backup of all accounts.
= The zmbkpose =
* Full backup of any account.
* Incremental backup of all accounts.
* Incremental backup of any account.
* Lists all backup sessions done.
* Restore all contents (mail, contacts, appointments...) to any account.
* Restore deleted accounts back to directory and all of its contents.
* Restore only account attributes, like password, class of service, etc


To run zmbkpose it is necessary
The zmbkpose tool is a shell script that does hot backup and hot restore of ZCS Opensource accounts, GPL(OPENSOURCE). It can run from any host in the net, which means that it can be set on a backup server already existent.


# Install ldap-utils e curl utils
It was concepted after Zimbra released ZCS 5.0.12, where a new import/export feature was exposed to user can be able to do his archiving. From that point it was clear for me that I just need to write a code to automatically get all user data from server, remotely via HTTP SOAP. Plus LDAP data. So, it is possible to run full backups and restore even deleted accounts.
# Create /etc/zmbkpose
# Config /etc/zmbkpose/zmbkpose.conf file (bellow)
# Create the script from code bellow, giving execute permissions
# To see zmbkpose syntax, type just zmbkpose


You can find more informations and instructions (in portuguese) at http://www.kyapanel.com/wiki/doku.php?id=zimbra:zmbkpose
Till now, zmbkpose provides


== Config and Scripts files from zmbkpose ==
* Full backup of all accounts;
* Full backup of any account;
* Incremental backup of all accounts;
* Incremental backup of any account;
* Lists all backup sessions done;
* Restore all contents (mail, contacts, appointments...) to any account;
* Restore deleted accounts back to directory and all of its contents;
* Restore only account attributes, like password, class of service;
* Configurable full simultaneously backup;


=== /etc/zmbkpose/zmbkpose.conf ===
This tool DOES NOT DO disaster recovery.


# This file is part of zmbkpose.
= Dependencies =
#    zmbkopse is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#    zmbkopse is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.


#    You should have received a copy of the GNU General Public License
To run zmbkpose it is necessary
#    along with Foobar.  If not, see <http://www.gnu.org/licenses/>


# Configuration file for ZCS Opensource Edition Backup Tool
# Install ldap-utils e curl utils;
# Lines begining with "#" will not be used
# Download de packages in realease section;
# Values must have to be filled without spaces, quotes, or any kind of special characters
# Copy the Config file to /etc/zmbkpose/zmbkpose.conf;
# Copy the script to /usr/bin
# Give script execute permissions
# To see zmbkpose syntax, type just zmbkpose


# Privileged user that will run zmbkpose and write in the work directory
BACKUPUSER=


# Work directory where will be the backup sessions (all user data)
= ZMBKPOSE and Kyapanel =
# # Keep the directory access strict to the backup user as long as it contains all user data.
WORKDIR=


# Must have be filled with an administrator account
KyaPanel is a panel to provide easy management in Gnu/Linux servers, developed to increase the network administration. Two modules are included in this new version: E-mail Management and Samba Management.  
# Hint: If you have deleted admin, or missed its password, you can create a new admin directly from command line:
# # zmprov ca newadmin@exemplo.com password
# # zmprov ma newadmin@exemplo.com zimbraIsAdminAccount TRUE
ADMINUSER=


# Must be filled with ADMINUSER password
Check out this amazing tool at  http://www.kyapanel.com
ADMINPASS=


# Must be filled with ldap url from Zimbra-LDAP master host
You can find more informations and instructions (in portuguese) at http://www.kyapanel.com/wiki/doku.php?id=zimbra:zmbkpose
# Example: ldap://hostname:389
LDAPMASTERSERVER=


# Must be filled with zimbra_ldap_userdn key's value
# Hint: To get this value, at Zimbra's server, run:
# # zmlocalconfig zimbra_ldap_userdn
LDAPZIMBRADN=


# Must be filled with zimbra_ldap_password key's value
{{Article Footer|Bruno Gurgel|12/15/2009}}
# Hint: To get this value, at Zimbra's server, run:
#      # zmlocalconfig -s zimbra_ldap_password
LDAPZIMBRAPASS=


# Log file location. It must to have write permission to BACKUPUSER
[[Category:Backup and Restore]]
LOGFILE=
[[Category:ZCS 5.0]]
[[Category:ZCS 6.0]]

Latest revision as of 18:24, 25 March 2015

Admin Article

Article Information

This article applies to the following ZCS versions.

ZCS 6.0 Article ZCS 6.0 ZCS 5.0 Article ZCS 5.0


NOTE

ZMBKPOSE is a bash script to hot backup and hot restore Zimbra Collaboration Suite Opensource. ZMBKPOSE was first developed by Rubens Alonso Filho and improved by many other people.


Would be nice if we get some reports to be always improveing the tool,please contact bruno@4linux.com.br, rubens@4linux.com.br, alan.milani@4linux.com.br for bugs, suggestions and others.

GitHub

Since 25/07/2011, this project will be on the github and any contribs are wellcome.

https://github.com/bggo/Zmbkpose

Releases

1.0.1 - [Download]

1.0.5 - [Download]

Inside the package look at the README for instructions.

The zmbkpose

The zmbkpose tool is a shell script that does hot backup and hot restore of ZCS Opensource accounts, GPL(OPENSOURCE). It can run from any host in the net, which means that it can be set on a backup server already existent.

It was concepted after Zimbra released ZCS 5.0.12, where a new import/export feature was exposed to user can be able to do his archiving. From that point it was clear for me that I just need to write a code to automatically get all user data from server, remotely via HTTP SOAP. Plus LDAP data. So, it is possible to run full backups and restore even deleted accounts.

Till now, zmbkpose provides

  • Full backup of all accounts;
  • Full backup of any account;
  • Incremental backup of all accounts;
  • Incremental backup of any account;
  • Lists all backup sessions done;
  • Restore all contents (mail, contacts, appointments...) to any account;
  • Restore deleted accounts back to directory and all of its contents;
  • Restore only account attributes, like password, class of service;
  • Configurable full simultaneously backup;

This tool DOES NOT DO disaster recovery.

Dependencies

To run zmbkpose it is necessary

  1. Install ldap-utils e curl utils;
  2. Download de packages in realease section;
  3. Copy the Config file to /etc/zmbkpose/zmbkpose.conf;
  4. Copy the script to /usr/bin
  5. Give script execute permissions
  6. To see zmbkpose syntax, type just zmbkpose


ZMBKPOSE and Kyapanel

KyaPanel is a panel to provide easy management in Gnu/Linux servers, developed to increase the network administration. Two modules are included in this new version: E-mail Management and Samba Management.

Check out this amazing tool at http://www.kyapanel.com

You can find more informations and instructions (in portuguese) at http://www.kyapanel.com/wiki/doku.php?id=zimbra:zmbkpose


Verified Against: Bruno Gurgel Date Created: 12/15/2009
Article ID: https://wiki.zimbra.com/index.php?title=HOT_Backup_and_HOT_Restore Date Modified: 2015-03-25



Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »

Jump to: navigation, search