CUBRID Backup & Restore Part I (Backup)



Similar documents
Lab 5 Managing Access to Shared Folders

Symantec Backup Exec Desktop Laptop Option ( DLO )

Moving the Web Security Log Database

Back Up and Restore. Section 11. Introduction. Backup Procedures

How To Backup A Database In Navision

SOS SO S O n O lin n e lin e Bac Ba kup cku ck p u USER MANUAL

USING STUFFIT DELUXE THE STUFFIT START PAGE CREATING ARCHIVES (COMPRESSED FILES)

Technical Support Set-up Procedure

Attix5 Pro Server Edition

Technical Bulletin. SQL Express Backup Utility

Backup and Restore with 3 rd Party Applications

Xythos on Demand Quick Start Guide For Xythos Drive

Scala InfoChannel Content Manager 5 Backup and Restore Instructions

SonicWALL CDP Local Archiving

Changing Your Cameleon Server IP

FIGURE Selecting properties for the event log.

Technical Note P/N REV A02 May 07, 2010

Attix5 Pro Server Edition

You must have at least Editor access to your own mail database to run archiving.

PCSchool SQL Backup Tech Tip. SQL Backup Tech Tip. Created in version /9

Backing Up and Restoring Microsoft Exchange Server Cloud Attached Storage. August 2012 Version 3.2

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

Membership PLUS Backup/Restore

Moving the TRITON Reporting Databases

...2. Standard Installation...4. Example Installation Scenarios...5. Network Installation...8. Advanced Settings Product Requirements

Tool Tip. SyAM Management Utilities and Non-Admin Domain Users

Administrator s Plus. Backup Process. A Get Started Guide

IMF Tune v7.0 Backup, Restore, Replication

Personal Call Manager User Guide. BCM Business Communications Manager

Installing LearningBay Enterprise Part 2

AVALANCHE MC 5.3 AND DATABASE MANAGEMENT SYSTEMS

Customizing the SSOSessionTimeout.jsp page for Kofax Front Office Server 3.5.2

How To Restore Your Data On A Backup By Mozy (Windows) On A Pc Or Macbook Or Macintosh (Windows 2) On Your Computer Or Mac) On An Pc Or Ipad (Windows 3) On Pc Or Pc Or Micro

MINIMIZING DISK SPACE USAGE IN SAAS OR VIRTUAL OFFICE CS

BSDI Advanced Fitness & Wellness Software

Buffalo Technology: Migrating your data to Windows Storage Server 2012 R2

You may have been given a download link on your trial software . Use this link to download the software.

Microsoft SQLServer Restore / Redirected Restore Procedure

Figure 1: Restore Tab

Symantec Enterprise Vault

Protecting SQL Server Databases Software Pursuits, Inc.

VERITAS NetBackup 5.0

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

Simple, Secure User Guide for OpenDrive Drive Application v for OS-X Platform May 2015

Acronis Backup & Recovery Online Backup Evaluation Guide

Welcome to the QuickStart Guide

GO!NotifyLink. Database Maintenance. GO!NotifyLink Database Maintenance 1

Auto-Archiving your s in Outlook

TestManager Administration Guide

NovaBACKUP Network User s Guide

CommVault Simpana Archive 8.0 Integration Guide

Table of Contents. OpenDrive Drive 2. Installation 4 Standard Installation Unattended Installation

Online Client Portal Client User Guide

BSDI Advanced Fitness & Wellness Software

Practice Fusion API Client Installation Guide for Windows

Migrating from SharePoint 2007 to SharePoint

Reduce the number of years of general ledger transactions and balances to save

Decision Support AITS University Administration. EDDIE 4.1 User Guide

Technical Note P/N REV A05 September 20, 2010

Zimbra Connector for Outlook Administrator Guide

Connecting to a Soundweb TM. London Network

SQL Server Setup Guide for BusinessObjects Planning

Version 4.61 or Later. Copyright 2013 Interactive Financial Solutions, Inc. All Rights Reserved. ProviderPro Network Administration Guide.

BACKUP MICROSOFT OUTLOOK/OUTLOOK EXPRESS

Chapter 25 Backup and Restore

Online Backup Client User Manual

Backing Up CNG SAFE Version 6.0

Archiving Your Mail in Outlook 2007

Installing Sage Accpac ERP CGA 5.6A

TM Online Storage: StorageSync

NetBackup Backup, Archive, and Restore Getting Started Guide

Site Maintenance Using Dreamweaver

NETWRIX FILE SERVER CHANGE REPORTER

Zimbra Connector for Outlook Administrator Guide

Creating client-server setup with multiple clients

PRODUCT WHITE PAPER LABEL ARCHIVE. Adding and Configuring Active Directory Users in LABEL ARCHIVE

TSM for Windows Installation Instructions: Download the latest TSM Client Using the following link:

InformationNOW SQL 2005 Database Backup and Restoration

Quick Guide: Troubleshooting Info from SNAP PAC Systems

Configuring Cloud based connections with Arcserve Backup

Prepared by Mythtech Limited OFFICE 365 MIGRATION MANUAL GUIDELINE

Security Explorer 9.5. User Guide

Allworx OfficeSafe Operations Guide Release 6.0

Attix5 Pro. Your guide to protecting data with Attix5 Pro Desktop & Laptop Edition. V6.0 User Manual for Mac OS X

Database Servers Tutorial

HP StorageWorks Library and Tape Tools FAQ

How to Archive in Outlook 2010

MS SQL Express installation and usage with PHMI projects

Work. MATLAB Source Control Using Git

Attix5 Pro Plug-ins. V7 Sailfish R2 User Manual. for Microsoft Windows. Your guide to installing and using Attix5 Pro plug-ins.

InformationNOW SQL 2008 Database Backup and Restoration

SonicWALL CDP 5.0 Microsoft Exchange InfoStore Backup and Restore

Table of Contents ShareCenter Sync Overview...3

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

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

VERITAS NetBackup Microsoft Windows User s Guide

1. Product Information

Actualtests.com - The Power of Knowing

Windows Peer-to-Peer Network Configuration Guide

Transcription:

CUBRID Backup & Restore Part I (Backup) January 2011 The scope of this tutorial is to introduce the CUBRID capabilities for database backup & restore. The tutorial is split into two parts: - Part I: Backup - Part II: Restore Overview One of the main responsibilities of a database administrator is to perform regular backups of the database, so that it can be restored successfully to a previous state in case of any incidents/system failures. In particular, a CUBRID database backup is the procedure of creating and storing database volumes, control files, log files, and it is typically executed using the cubrid backupdb utility in the command line or through the CUBRID Manager GUI client interface. Note: When we talk about backup and restore, we need to mention that the restore environment must have the same operating system and the same version of CUBRID as the backup environment. For migration purposes, there is another dedicated tool called the CUBRID Migration Toolkit (CMT) which supports such scenarios. CUBRID backupdb utility The syntax of the tool is: cubrid backupdb [ options ] database_name [ options ] -D -r -l -o -S -C -t -z -e --destination-path --remove-archive --level --output-file --SA-mode --CS-mode --threadcount --compress --except-active-log --no-check For complete information about the usage of this utility, please consult the online manual at http://www.cubrid.org/cubrid_backup_restore#cubrid-backupdb-utility-1 or the offline help available within the CUBRID Manager client. Note: The backupdb utility can only be executed by a user having backup authorization granted (e.g. dba). 1

Backup levels The key to understand and develop a successful backup strategy is to understand first the CUBRID backup levels concept. CUBRID supports the following three types of backups: - Full backup (backup level 0). Backup level 0 is a backup that includes all database data. - First incremental backup (backup level 1). Backup level 1 is an incremental backup that only saves the changes made since the level 0 full backup. - Second incremental backup (backup level 2). Backup level 2 is an incremental backup that only saves data that has been changed since the first incremental backup. In other words, the usual strategy to implement a database backup would be to: - First create a full database backup level 0. - Depending on the databases activity/the specifics of your installation, proceed next with level 1 incremental backups on a regular basis. - Perform level 2 backups between the level 1 backups, based on your needs to ensure data availability, and taking into account the risks of losing data. - Repeat the previous steps, whenever the differences between the backup levels become too big and will impact the performance/the size of the levels 1 or 2. For example, a backup strategy could be: - Perform level 0 backups every week - Perform level 1 backups twice a week - Perform level 2 backups every day Of course, there are no absolute rules and you will have to adapt the backup strategy to best fit the specifics of your CUBRID installation. Backup examples Let s use the demodb database and let s create a full backup (level 0) of the database, in clientserver mode we do not want to close the existing client connections. We will create the backup in a CUBRID installation subfolder named backup. We will use the r parameter, because it is recommended (when performing a full backup) to remove the archive logs. For the other parameters, we will go with the default options: >cubrid backupdb r C -D C:\CUBRID\backup demodb -D --destination-path Specifies the directory path name (or device name) where backup volumes are to be created. The default value is the location of log_path parameter specified in the databases location file (databases.txt). -r --remove-archive Removes unnecessary archive logs after the backup is complete. 2

-C --CS-mode Performs a backup in client/server mode. The default value is the one specified by the system parameter CUBRID_MODE. Note: In case a backup already exists for the level 0, the user will be prompted to confirm to overwrite it. Notice that the default naming convention is used for the created backup files: If we want to have more information about the backup, we can use the -o option to output the logs to the file; remember, when you use the -o option, the path you specify for the file where backup information will be dumped is relative to the CUBRID installation folder: And here is the information which is stored in the specified file: 3

Tip: Remember, you can always see the list of the available database backups using the restoredb utility: >cubrid restoredb --list demodb 4

Once we have created a full backup of the database, we can proceed further with creating a level 1 backup: >cubrid backupdb 1 r C -D C:\CUBRID\backup demodb 5

And once having a level 1 backup in place, we can now finally create level 2 backups. They can be created whenever needed, there is not required to re-create a level 1 backup every time before: As you can see from the above examples, making a CUBRID database backup is very easy. The process itself consists of just running a single command and it executes very fast. There are multiple options you can use with the tool, to facilitate obtaining the results you need. Backup database using CUBRID Manager Client In the previous examples, we showed you how to create various backups using the command line tool (backupdb). But in addition to this solution, there is another easy way to create database backups which is using the graphical interface provided by the CUBRID Manager client. To backup a database using the CUBRID Manager client, use one of the following ways: - Click the Backup Database icon from the toolbar - Right-click the database in the tree and then select the Backup Database item - Select Action -> Backup Database from the main menu 6

Once you select Backup Database the following dialog will be displayed, where you can specify the backup options: If a backup has been successfully created for the database, you can check the backup history from the Backup History Information tab, in the dialog above: 7

Backup Automation in the CUBRID Manager Client Not only you can easily create backup from the interface, but you can schedule automatic backups using the CUBRID Manager client interface. When you login to the database, you have access to the Backup plan entry, under Job automation in the left navigation tree. The Add Backup Plan and Auto Backup Logs menus are available when you right-click on Backup plan: If you want to activate a backup periodically, you will have to configure it, using the Add Backup Plan option: 8

Note: A backup automation is executed only when the CUBRID Manager server is running. And there is more to discover, so we encourage you to try using all the rich backup options provided by the CUBRID Manager client, to learn the most effective ways to implement a successful backup strategy. This concludes the 1 st part of the CUBRID Backup & Restore tutorial, focused on presenting the CUBRID backup features. Please access the 2 nd part of the tutorial to learn about the restore capabilities built into CUBRID. Thank you! 9