Zimbra Next Generation Modules/Zimbra NG Backup/Backup Validation: Difference between revisions

m (1 revision imported: Zimbra NG)
 
Line 1: Line 1:
<div class="col-md-12"><br></div>
#REDIRECT [[Zimbra_NG_Modules/Zimbra_NG_Backup/Backup_Validation]]
<div class="col-md-12"><br></div>
<ol class="breadcrumb">
  <li>[[Main Page|Zimbra Wiki]]</li>
  <li>[[Zimbra_Next_Generation_Modules]]</li>
  <li>[[Zimbra_NG_Backup]]</li>
  <li class="active"> Backup Validation</li>
</ol>
__NOTOC__
<div class="col-md-12"><br /></div>
<div class="col-md-9">
    <h2 class="title-header" style="padding-bottom: 9px; border-bottom: 4px solid #0087c3;">Zimbra NG Backup - Backup Validation</h2>
    <div class="col-md-12">
        <div class="ibox-content">
            <div class="post animated fadeInLeft animation-delay-8" style="padding-top:5px">
                <div class="panel panel-default">
                    <div class="panel-body">
                        <h5 class="post-title">Zimbra NG Backup - Backup Validation</h5>
                        <div class="row">
=Backup Validation=
Extract from the Wikipedia page on Backup Validation[http://en.wikipedia.org/wiki/Backup_validation]:
 
''Validation is the process of finding out whether a backup attempt succeeded or not, or, whether the data is backed up enough to consider it "protected". This process usually involves the examination of log files, the "smoking gun" often left behind after a backup attempts takes place, as well as media databases, data traffic and even magnetic tapes. Patterns can be detected, key error messages identified and statistics extracted in order to determine which backups worked and which did not.''
 
= Validating a backup made with Zimbra NG Backup =
Two different types of Backup Validation are described below: a "Quick" Validation Procedure that only checks user-level stored items (both Data and Config) and a "Deep" Validation procedure that checks all available data (User Data and Config, Domains, Classes of Service)
 
Please note that, due to the nature of this test, the Deep Validation procedure it is not meant to be executed on a live, production server. A proper test environment is specified along every Backup Validation procedure.
==Quick Validation Procedure==
====Test Environment====
None
 
====Requirements====
A running Zimbra NG Backup infrastructure
 
==== Step by Step Quick Validation ====
* Log into the Zimbra Administration Console
* Select a target account for the test. Any account will do, as no changes will be done to it.
* Perform a [[Zimbra_Next_Generation_Modules/Zimbra_NG_Backup/Restore_on_New_Account|Restore on New Account]] operation, using the choosen account as the source, selecting a new name for the destination account and using the current date/time as the restore time.
* After the Restore on New Account operation is completed, ssh to the Zimbra server
* To check folders and number of items, run the following commands (as the Zimbra user):
''zmmailbox -z -m source_account@domain.tld getAllFolders''
 
''zmmailbox -z -m destination_account@domain.tld getAllFolders''
 
and compare the outputs.
 
*Except for the "Id" column, the other fields should be the same for both accounts. If the "Unread" or "Msg Count" slightly differ from one output to the other, check if new emails arrived while performing the test and subtract them from the totals.
*If the outputs match, check the inboxes with the "Vew Mail" function of the Zimbra Administration Console to further check actual data in emails/calendars/address books etc.
*To check account preferences and settings, run the following commands (as the Zimbra user):
'' zmprov ga source_account@domain.tld''
 
'' zmprov ga destination_account@domain.tld'''
 
and compare the outputs.
 
==Deep Validation Procedure==
 
====Test Environment====
A server with a fresh install of Zimbra, with the same OS/Zimbra Version/Zimbra Next Generation Modules Version as the original server.
<div class="col-md-8">
    <div class="alert alert-warning fade in"> <p> <i class="fa  fa-warning"></i> <strong>warning</strong> </p>
    <p class="text-justify">If performing the Deep Validation procedure on a multiserver environment the complete infrastructure must be replicated</p>
    </div>
</div>
<div class="clearfix"></div>
Enough disk space to perform a full restore.
 
Server configuration manually applied on the Test Enviroment, mirroring production's server configuration (Server only - domains, accounts and Classes of Service are going to be imported).
 
====Requirements====
A running Zimbra NG Backup infrastructure
 
Access (at least read permissions) to the Zimbra NG Backup path
 
 
==== Step by Step Deep Validation ====
* Log into the Zimbra Administration Console on the test server
* Perform an [[Zimbra_Next_Generation_Modules/Zimbra_NG_Backup/ExternalRestore|External Restore]] using the running Zimbra NG Backup path of the production server as the source. Import all domains and accounts.
* Once the import is completed, use the doCheckShares and doFixShares commands of the [[Zimbra_Next_Generation_Modules/CLI|Zimbra Next Generation Modules CLI]] to verify and eventually rebuild folder shares. Use the map_[server_id] file as the argument for the doFixShares commands
* manually check the coherency of imported domains and Classes of Service.
* Perform some sample checks on the accounts using the guidelines described in the Quick Validation Procedure
 
 
                        </div>
                    </div>
                    <div class="col-md-9">
                        <div class="panel-footer">
                            <p><i class="fa fa-clock-o"></i> Aug 25, 2016 - [https://www.zimbra.com/email-server-software/ Know more »]</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="col-md-3"><br /></div>
<div class="col-md-3">
    <div class="panel panel-zimbrared-light-border">
        <div class="panel-heading">
            <h3 class="panel-title"><i class="fa fa-gear pull-left"></i> Zimbra Next Generation Modules</h3>
        </div>
        <div class="panel-body">
            {{ZNG}}
        </div>
    </div>
</div>
<div class="col-md-3">
    <div class="panel panel-primary-light-border">
        <div class="panel-heading">
            <h3 class="panel-title"><i class="fa fa-info-circle pull-left"></i> Zimbra Next Generation Modules Resources</h3>
        </div>
        <div class="panel-body">
            {{ZNGL}}
        </div>
    </div>
</div>
<div class="clearfix"></div>
<div class="col-md-12"><br></div>
{{FH}}

Latest revision as of 12:45, 29 November 2017

Jump to: navigation, search