MapGuide Open Source Repository Management Back up, restore, and recover your resource repository.

Similar documents
Agenda. Overview Configuring the database for basic Backup and Recovery Backing up your database Restore and Recovery Operations Managing your backups

WHITE PAPER: ENTERPRISE SOLUTIONS. Symantec Backup Exec Continuous Protection Server Continuous Protection for Microsoft SQL Server Databases

Rajan Arora (Deloitte) SAP Business Objects Backup and Recovery Scenarios and Best Practices Session # 3233

Backup and Recovery using PITR Mark Jones EnterpriseDB Corporation. All rights reserved. 1

How to Create a Delegated Administrator User Role / To create a Delegated Administrator user role Page 1

Lotus Domino Backup Strategy

Acronis Backup & Recovery 10 Server for Windows. Installation Guide

VSS installation and application

Backing up the Embedded Oracle database of a Red Hat Network Satellite

Table of Content. Official website:

SQL Server Replication Guide

Configure Cisco Emergency Responder Disaster Recovery System

Backup and Recovery of SAP Systems on Windows / SQL Server

Support Document: Microsoft SQL Server - LiveVault 7.6X

TD Data Management Server 2010 Backup

Backup and Restore FAQ

Application Note - JDSU PathTrak Video Monitoring System Data Backup and Restore Process

Capture Pro Software FTP Server System Output

EMC DOCUMENTUM xplore 1.1 DISASTER RECOVERY USING EMC NETWORKER

Acronis Backup & Recovery 10 Server for Windows. Installation Guide

Backup and Restore with 3 rd Party Applications

Moving the Web Security Log Database

Veeam Best Practices with Exablox

About database backups

HELP DOCUMENTATION E-SSOM BACKUP AND RESTORE GUIDE

Module 7. Backup and Recovery

Zen Internet. Online Data Backup. Zen Vault Professional Plug-ins. Issue:

Protecting SQL Server Databases Software Pursuits, Inc.

Ascent Capture's MSDE 2000 Backup and Restore Instructions (For Ascent Capture 7.x and 6.x using the default MSDE 2000 database)

Capture Pro Software FTP Server Output Format

VMware vcenter Configuration Manager Backup and Disaster Recovery Guide vcenter Configuration Manager 5.4.1

Directory Backup and Restore

FileCruiser Backup & Restoring Guide

Oracle Database 10g: Backup and Recovery 1-2

Tiburon Master Support Agreement Exhibit 6 Back Up Schedule & Procedures. General Notes on Backups

RMAN What is Rman Why use Rman Understanding The Rman Architecture Taking Backup in Non archive Backup Mode Taking Backup in archive Mode

How to protect, restore and recover SQL 2005 and SQL 2008 Databases

Maximum Availability Architecture. Oracle Best Practices For High Availability. Backup and Recovery Scenarios for Oracle WebLogic Server: 10.

Symantec Backup Exec 2014 Icon List

Version: Page 1 of 5

Backing Up CNG SAFE Version 6.0

SEIZE THE DATA SEIZE THE DATA. 2015

White Paper. Alfresco Backup and Disaster Recovery

How To Backup In Cisco Uk Central And Cisco Cusd (Cisco) Cusm (Custodian) (Cusd) (Uk) (Usd).Com) (Ucs) (Cyse

A Practical Guide to Backup and Recovery of IBM DB2 for Linux, UNIX and Windows in SAP Environments Part 1 Backup and Recovery Overview

Upgrading to advanced editions of Acronis Backup & Recovery 10. Technical white paper

Database Disaster Recovery using only RMAN Backups

Administration Guide - Documentum idataagent (DB2)

vcenter Configuration Manager Backup and Disaster Recovery Guide VCM 5.3

MySQL Backups: From strategy to Implementation

Data Containers. User Guide

DOCUMENTATION LOTUS NOTES BACKUP & RESTORE OPERATIONS

Reflection DBR USER GUIDE. Reflection DBR User Guide. 995 Old Eagle School Road Suite 315 Wayne, PA USA

About Backing Up a Cisco Unity System

Cloud Attached Storage

EMC NetWorker Module for Microsoft for Windows Bare Metal Recovery Solution

11. Oracle Recovery Manager Overview and Configuration.

DB2 backup and recovery

Acronis Backup & Recovery 10 Server for Windows. Installation Guide

SAP Note FAQ: SAP HANA Database Backup & Recovery

File Protection Using Rsync User Guide

Database Maintenance Guide

BrightStor ARCserve Backup

10215A Implementing and Managing Microsoft Server Virtualization

Backup and Restore MySQL Databases

If a database is using the Simple Recovery Model, only full and differential backups of the database can be taken.

SQL Server 2005 Advanced settings

XenClient Enterprise Synchronizer Migration

How To Install An Aneka Cloud On A Windows 7 Computer (For Free)

4 Backing Up and Restoring System Software

Backup / migration of a Coffalyser.Net database

Database Backup Datacolor Match Pigment and Datacolor Tools

Open Systems SnapVault (OSSV) Best Practices Guide

Database Fundamentals

SAP HANA SPS 09 - What s New? Backup/Recovery

FaxCore 2007 Application-Database Backup & Restore Guide :: Microsoft SQL 2005 Edition

Retrospect 7.7 User s Guide Addendum

Updates Click to check for a newer version of the CD Press next and confirm the disc burner selection before pressing finish.

User Guide. Database Backup Procedures for MS SQL Server 2005 Express

BackupAssist Common Usage Scenarios

1. Overview... 2 Documentation... 2 Licensing... 2 Operating system considerations... 2

Technical Bulletin. SQL Express Backup Utility

Backup Types. Backup and Recovery. Categories of Failures. Issues. Logical. Cold. Hot. Physical With. Statement failure

Published. Technical Bulletin: Use and Configuration of Quanterix Database Backup Scripts 1. PURPOSE 2. REFERENCES 3.

Implementing and Managing Microsoft Server Virtualization

Ingres Backup and Recovery. Bruno Bompar Senior Manager Customer Support

Citrix XenServer-6.2 Administration Training

1. Data Domain Pre-requisites. 2. Enabling OST

Perforce Backup Strategy & Disaster Recovery at National Instruments

HP Online ROM Flash. User Guide

EVault for Data Protection Manager. Course 301 Server Protection with DPM File and System State

High Availability for VMware GSX Server

DO NOT ASSUME THAT THE BACKUP IS CORRECT. MAKE SURE IT IS.

Veritas NetBackup for Microsoft Exchange Server Administrator s Guide

Oracle Recovery Manager

Acronis True Image 2015 REVIEWERS GUIDE

Oracle VM Server Recovery Guide. Version 8.2

Transcription:

MapGuide Open Source Repository Management Back up, restore, and recover your resource repository. Page 1 of 5

Table of Contents 1. Introduction...3 2. Supporting Utility...3 3. Backup...4 3.1 Offline (Cold)...4 3.2 Online (Hot)...4 4. Restore...5 5. Recover...5 6. File Locations...5 Page 2 of 5

1. Introduction This document describes the management of the MapGuide repositories. This includes backing up, restoring and recovering the repositories. The MapGuide server consists of the following 3 types of repositories: 1. Library Used for persistent storage. It corresponds to what is shown in the Site Explorer when you use the Studio application. 2. Site Used for persistent storage of the Users/Groups/Roles information. 3. Session Holds data only for the user's current session and is automatically deleted by the server if they have not been used for a certain length of time. The server creates session repositories automatically as required. The backup/restore/recovery operations described in this document only cover the MapGuide server repositories and not any of the data files. The data files stored in the sub directories in the default folder must be managed separately using standard file-based backup/restore/recovery methods: C:\Program Files\MapGuideOpenSource\Server\Repositories\Library\DataFiles (Windows Open Source version) /usr/local/mapguideopensource/server/repositories/library/datafiles (Linux Open Source version) 2. Supporting Utility MapGuide provides a PHP script, RepositoryAdmin.php, to back up or restore repositories. Syntax: php RepositoryAdmin.php [-c {Backup Restore}] [-l {0-10}] [-i "/input/path"] [-o "/ouput/path"] Options: Flags Values -c Name of the command: = Backup, to back up repositories. = Restore, to restore repositories (any existing file directly under the specified output directory will be moved to a time-stamped backup sub-directory). -l Incremental level (from 0 to 10), only applicable to the Backup command. = 0, Offline (cold) backup (A full snapshot is always taken.) > 0, Online (hot) backup. For example, for an incremental level value of 2: If the number of active log files in the previous snapshot is less than or equal to 2, an incremental snapshot is taken. If the number of active log files in the previous snapshot is greater than 2, a full snapshot is taken. Note that active log files are files containing data that has NOT been saved to the database (by default, the size of a log file is about 10 MB). -i Absolute path to the source location from where the repository is backed up or restored. -o Absolute path to the destination location to where the repository is backed up or restored. For offline (cold) backups, repositories are archived to a time-stamped sub-directory. For Page 3 of 5

online (hot) backups, repositories are archived to the "CurrentHotBackup" or a timestamped sub-directory when taking an incremental or full snapshot respectively. The MapGuide server uses the Berkeley database which uses write-ahead-logging to ensure recoverability. That means before any change is made to a database, information about the change is written to a log file. Active log files contain data that has NOT been saved to the database. The size of a log file is currently configured to be about 10 MB. Therefore, the maximum amount of data that has NOT been saved to the database is approximately 100 MB (10 active log files X 10 MB per log file). The server controls the number of active log files internally (and would keep it well under 10). Notes: The at program available on both Windows and Linux can be used to run a backup at a specified time and date. 3. Backup MapGuide will support both Hot and Cold repository backup. The frequency that your repository is backed up depends on the data and how often it is updated. 3.1 Offline (Cold) To create an offline (cold) backup: 1. Shut down the server by stopping the MapGuide Server service on Windows or the daemon on Linux. 2. Run BackUpOfflineRepositories.bat or BackUpOfflineRepositories.sh on Windows or Linux respectively. Alternatively, you can manually copy all of the files from the Repositories directory (e.g. C:\Program Files\MapGuideOpenSource\Server\Repositories on Windows, or /usr/local/mapguideopensource/server/repositories on Linux) to the backup location. 3. Restart the server service on Windows or the daemon on Linux. 3.2 Online (Hot) To create an online (hot) backup: 1. The server is NOT required to be shut down. 2. Run BackUpOnlineRepositories.bat or BackUpOnlineRepositories.sh on Windows or Linux respectively. Page 4 of 5

4. Restore The following steps will restore the repository from a backup: 1. Shut down the server by stopping the MapGuide Server service on Windows or the daemon on Linux. 2. Run RestoreRepositories.bat or RestoreRepositories.sh on Windows or Linux respectively. Alternatively, you can manually remove all the files (except the DataFiles sub folder if it exists) under the Library, Site, and Session directories (located at C:\Program Files\MapGuideOpenSource\Server\Repositories on Windows, or /usr/local/mapguideopensource/server/repositories on Linux), then copy all of the files from the backup location to those directories mentioned above. 3. Restart the server service on Windows or the daemon on Linux. 5. Recover The repository could become corrupted due to any one of the following: Power failure Hardware failure Software failure Concurrent access to the repository by two or more applications If the MapGuide server detects that the repository has become corrupt, it will throw an exception and log the appropriate error message. The following steps should be followed in order to recover the corrupted repository: 1. Ensure that the repository is not locked by any application. This may require the computer to be rebooted. 2. Restart the server. The server will automatically try to fix the repository. There is still a chance that a recovery may fail if any of the repository files have been deleted or are too badly damaged. 6. File Locations After installing the server, by default, all the scripts and sample batch files are located: C:\Program Files\MapGuideOpenSource\Server\RepositoryAdmin on Windows, or /usr/local/mapguideopensource/server/repositoryadmin on Linux. And all the supporting libraries are located: C:\Program Files\MapGuideOpenSource\Server\Bin on Windows, or /usr/local/mapguideopensource/server/bin on Linux. Page 5 of 5