Presented by: CSIR-KNOWGATE. KNOWGATE Email: csirknowgate@niscair.res.in KNOWGATE Website: knowgate.niscair.res.in

Similar documents
How To Backup A Database On A Microsoft Powerpoint 3.5 (Mysqldump) On A Pcode (Mysql) On Your Pcode On A Macbook Or Macbook (Powerpoint) On

SYSTEM BACKUP AND RESTORE (AlienVault USM 4.8+)

Database Backup and Restore Mechanism. Presented by : Mary Meladath

MySQL Backup and Security. Best practices on how to run MySQL on Linux in a secure way Lenz Grimmer <lenz@mysql.com>

ULTEO OPEN VIRTUAL DESKTOP V4.0

Lenz Grimmer

CN=Monitor Installation and Configuration v2.0

MySQL Backups: From strategy to Implementation

MySQL Enterprise Backup User's Guide (Version 3.5.4)

ABS Manual Installation Guide

DBA Tutorial Kai Voigt Senior MySQL Instructor Sun Microsystems Santa Clara, April 12, 2010

stub (Private Switch) Solaris 11 Operating Environment In the Solaris 11 Operating Environment, four zones are created namely:

Chapter 1. Backup service

Backing Up CNG SAFE Version 6.0

AUTOMATED BACKUPS. There are few things more satisfying than a good backup

Upgrading From PDI 4.1.x to 4.1.3

OpenGeo Suite for Linux Release 3.0

Amon Agent. User Guide

MySQL Backup IEDR

Information Systems Application Administration Manual Request Tracker

Radica Systems Limited RI Backup/Restore Guide Page: 1

1. Product Information

Online Backup Client User Manual Linux

Rsync based backups. Rsync is essentially a directory syncing program.

RecoveryVault Express Client User Manual

Backup and Restore MySQL Databases

Determining your storage engine usage

Configure Cisco Emergency Responder Disaster Recovery System

Online Backup Linux Client User Manual

Online Backup Client User Manual

Video Administration Backup and Restore Procedures

MySQL Administration and Management Essentials

Backing Up TestTrack Native Project Databases

Installing LearningBay Enterprise Part 2

SQL Server Setup for Assistant/Pro applications Compliance Information Systems

MySQL Enterprise Backup User's Guide (Version 3.5.4)

You will be prompted for a password for the postgres user. In the example below,

Apache Hadoop 2.0 Installation and Single Node Cluster Configuration on Ubuntu A guide to install and setup Single-Node Apache Hadoop 2.

Online Backup Client User Manual

Creating a Domain Tree

Version Control. Luka Milovanov

Setting up High Availability

Eurobackup PRO: Configuration Best Practices

HSearch Installation

Activating the Realtime Register module within WHMCS. Unzip the Realtime Register module and upload it to your root directory

XCloner Official User Manual

Private Server and Physical Server Backup and Restoration:

Installation Guide for WebSphere Application Server (WAS) and its Fix Packs on AIX V5.3L

GroundWork Monitor Open Source Installation Guide

RingStor User Manual. Version 2.1 Last Update on September 17th, RingStor, Inc. 197 Route 18 South, Ste 3000 East Brunswick, NJ

Disaster Recovery on the Sun Cobalt RaQ 3 Server Appliance with Third-Party Software

Scala InfoChannel Content Manager 5 Backup and Restore Instructions

Database Administration with MySQL

MySQL Backup and Recovery: Tools and Techniques. Presented by: René Senior Operational DBA

MySQL Enterprise Backup User's Guide (Version 3.9.0)

Part 3. MySQL DBA I Exam

Backup policies. Or - how not to get annoyed when you accidentally delete stuff. Warning - this does get a little technical

Backing Up Your System With rsnapshot

Version: Page 1 of 5

Instructions for update installation of ElsaWin 5.00

MySQL Enterprise Backup User's Guide (Version )

Online Backup Client User Manual Mac OS

Online Backup Client User Manual Mac OS

Linux Backups. Russell Adams Linux Backups p. 1

Bubble Code Review for Magento

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

Central Administration User Guide

SQL Financial Accounting GST - How To Start A New Margin Scheme Database. estream Software : : :

Welcome and thank you for considering enstratus as your cloud management platform.

PostgreSQL Backup Strategies

Elixir Schedule Designer User Manual

VERSION 9.02 INSTALLATION GUIDE.

Server Installation/Upgrade Guide

Linux System Administration. System Administration Tasks

BackupAssist v5 vs. v6

Fermilab Central Web Service Site Owner User Manual. DocDB: CS-doc-5372

SAP HANA Disaster Recovery with Asynchronous Storage Replication Using Snap Creator and SnapMirror

Every Silver Lining Has a Vault in the Cloud

A Quick Start Guide to Backup Technologies

Designing and Deploying Messaging Solutions with Microsoft Exchange Server 2010 Service Pack B; 5 days, Instructor-led

JOINUS AG. PowerPay Checkout. Magento Module User Manual. Support:

XtraBackup: Hot Backups and More

Backup Tab. User Guide

SOLUTIONS INC. BACK-IT UP. Online Backup Solution

Backup Tab. User Guide

Yota PCRF. Backup and Recovery. Product version: 3.6 Document version: 1.6

Upgrading From PDI 4.0 to 4.1.0

EVault for Data Protection Manager. Course 361 Protecting Linux and UNIX with EVault

Backup, Transfer, and Restore Guide. Introduction

How to Restore a Windows System to Bare Metal

Installing Active Directory

Configuring Sun StorageTek SL500 tape library for Amanda Enterprise backup software

Managing Cisco ISE Backup and Restore Operations

Transcription:

Presented by: CSIR-KNOWGATE KNOWGATE Email: csirknowgate@niscair.res.in KNOWGATE Website: knowgate.niscair.res.in

Backup of Database Restore of Database Backing up the Koha File System Backup of Local OS Configure

There are three main components of Koha that must be considered when backing up and restoring: odatabase okoha filesystem ooperating system customizations for the system

Backup of Database Restore of Database Backing up the Koha File System Backup of Local OS Configure

There are many ways to backup MySQL databases (Use MySQL manual) Best way to backup your Koha database manually is the mysqldump application To backup the whole database you can invoke by: [root@user]# mysqldump --add-drop-table -uroot pyour password Koha > 2013_01_30_koha.sql Note: --add-drop-table option. This specifies that when you restore the data you will not append the data to existing data; additionally, if tables in your backup do not exist in the database they will be created

If you plan to work on a specific table (like issues Table) and you'd like to back up just that table you can use mysqldump to do that as well by: [root@user]# mysqldump --add-drop-table -uroot pyour password Koha.issues > 2013_01_30_koha.issues.sql The gzip program to compress the SQL file and reduce it's overall size for easier transport: [root@user]# gzip 2013_01_30_koha.sql

Backup of Database Restore of Database Backing up the Koha File System Backup of Local OS Configure

To unzip your file (in case you need to restore your database) you simply type: [root@user]# gzip -d filename.tgz An sql file can be used to restore data using the MySQL command-line tool. An example of how to restore the Koha database using an sql file called koha.sql : [root@user]# mysql -uroot -pyour password Koha < koha.sql

To restore a single table such as issues from a file called koha.issues.sql you wouldtype: [root@user]# mysql -uroot pyour password Koha.issues < koha.issues.sql

For load balancing, replication can serve as a realtime backup for your Koha system You will need to manually promote a slave to serve as master, and you will likely need to adjust your local configurations depending on how you have your systems setup, but having replication in place will probably ensure the fastest route to recovery from a complete system crash See the replication section of the MySQLmanual for more details

Backup of Database Restore of Database Backing up the Koha File System Backup of Local OS Configure

To backup the Koha installation directory tree you need to ensure that all your Koha files are being considered Most of them are located by default in /usr/local/koha The koha-httpd.conf and the koha.conf files are located in the /etc/ directory

Here is a short Perl script that run with cron every evening. It backs up the filesy stem using tar and gzip You'll need to change some of the Configurable Variables for the script to work in your environment Other than that, it's pretty much ready to go setup Cron to run

#!/usr/bin/perl -w #This script assumes that you have set up a CVS repository #that is symlinked to your installation directories. For #info on setting that up see the Koha manual "Updating Koha #Configurable Variables my $koha_base = "/build/websites/openils.com/koha"; #location of Koha cvs repo my $bak_loc = "/build/backups"; #where to put backups

my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday, $isdst)= localtime(time); $year += "1900"; my $date = "$year-$mon-$mday"; #Backup the filesystem print "Backing up the filesystem\n"; print "Please wait..."; `rm -rf $koha_base.bak`; #remove the previous backup `cp $koha_base $koha_base.bak`; #make a new backup `tar -cvzf $bak_loc/$date-kohafilesystem.tgz $koha_base.bak`; #targzipit

Backup of Database Restore of Database Backing up the Koha File System Backup of Local OS Configure

The list of possible custom configuration files for your system is unlimited, so we can just list a few common examples that you might want to consider including as part of your regular backup scheme: o httpd.conf o my.cnf o any custom cron jobs related to Koha

Thanks