Backup Procedures for IT Staff User Guide



Similar documents
Backing Up CNG SAFE Version 6.0

How to Backup Your Eclipse.Net Database Automatically. To clearly document a specific automatic SQL database backup method for Eclipse.net.

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

Protecting SQL Server Databases Software Pursuits, Inc.

Microsoft SQLServer Restore / Redirected Restore Procedure

Automated backup. of the LumaSoft Gas database

Automated Database Backup. Procedure to create an automated database backup using SQL management tools

Database Back-Up and Restore

How to Copy A SQL Database SQL Server Express (Making a History Company)

BackupAssist v6 quickstart guide

SonicWALL CDP 5.0 Microsoft Exchange InfoStore Backup and Restore

How to Backup and FTP your SQL database using E2.

BackupAssist v6 quickstart guide

TD Data Management Server 2010 Backup

KEYWORDS InteractX, database, SQL Server, SQL Server Express, backup, maintenance.

SonicWALL CDP Local Archiving

Microsoft SQL Server 2005 How to Create and Restore Database (GRANTH3) Manually

TSM Studio Server User Guide

NetVanta Unified Communications Server Backup and Restore Procedures

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

InformationNOW SQL 2008 Database Backup and Restoration

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

sqlcmd -S.\SQLEXPRESS -Q "select name from sys.databases"

Lab: Data Backup and Recovery in Windows XP

Exchange Mailbox Protection

Data Containers. User Guide

About database backups

Technical Bulletin. SQL Express Backup Utility

Backing Up and Restoring the SQL Server 2005 Environment

New Zealand End of Year Payroll

1. Product Information

Online Backup Client User Manual Linux

Lab - Data Backup and Recovery in Windows XP

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

Exchange Mailbox Protection Whitepaper

RecoveryVault Express Client User Manual

HELP DOCUMENTATION E-SSOM BACKUP AND RESTORE GUIDE

Table of Contents. CHAPTER 1 About This Guide CHAPTER 2 Introduction CHAPTER 3 Database Backup and Restoration... 15

If you have questions or need assistance, contact PCS Technical Services using the contact information on page 10.

BSDI Advanced Fitness & Wellness Software

SQL Server 2005 Advanced settings

Figure 1: Restore Tab

Hyper-V recovery. User Guide

vcenter Configuration Manager Backup and Disaster Recovery Guide VCM 5.3

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

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

Online Backup Linux Client User Manual

BACKUP & RESTORE (FILE SYSTEM)

Online Backup Client User Manual

Moving the Web Security Log Database

Microsoft SQL Server Scheduling

Backup and Restore with 3 rd Party Applications

Notes Transfer instructions INTRODUCTION More information

ProSystem fx Document

Migrating helpdesk to a new server

Hyperoo 2.0 A (Very) Quick Start

SQL Server Protection Whitepaper

Installing LearningBay Enterprise Part 2

How to manage the Adaptive Call Recorder (v.9-50)

SQL Server Protection

Obviously with the first backup, the machine does not have a cache, therefore ALL selected files are Added to the first backup.

Online Backup Client User Manual

Vess A2000 Series. NVR Storage Appliance. Windows Recovery Instructions. Version PROMISE Technology, Inc. All Rights Reserved.

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

Milestone XProtect Corporate 3.1 Step-by-Step Guide How to Back Up, Move and Restore the Management Server

SERVER CLOUD DISASTER RECOVERY. User Manual

Keepit starter guide

Altaro Hyper-V Backup - Getting Started

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

Microsoft s SBS 2003 Best Practice Guide

5.6.3 Lab: Registry Backup and Recovery in Windows XP

Quick Start - Virtual Server idataagent (Microsoft/Hyper-V)

Backing Up and Restoring the Database

Online Backup Client User Manual Mac OS

Online Backup Client User Manual Mac OS

Restoring Sage Data Sage 200

SQL Server Protection. User guide

K-Backup: Network automatic backup data to free iscsi SAN

WIM Image Upgrade Instructions

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

SSO Plugin. J System Solutions. Upgrading SSO Plugin 3x to 4x - BMC AR System & Mid Tier.

How to Back Up and Restore an ACT! Database Answer ID 19211

Scala InfoChannel Content Manager 5 Backup and Restore Instructions

Restore Tab. User Guide

Moving the TRITON Reporting Databases

Software License Registration Guide

Spector 360 Deployment Guide. Version 7

STIDistrict Server Replacement

Online Backup Client User Manual

MTA Course: Windows Operating System Fundamentals Topic: Understand backup and recovery methods File name: 10753_WindowsOS_SA_6.

Backup Tab. User Guide

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

Digi Connect Wan 3G Application Guide Update the firmware, backup and restore the configuration of a Digi Connect Wan 3G using a USB flash drive.

NAS 253 Introduction to Backup Plan

Backup and Recovery of SAP Systems on Windows / SQL Server

Backing up and restoring HP Systems Insight Manager 6.0 or greater data files in a Windows environment

K-Backup: Automatic Network Backup solution

Backup Tab. User Guide

Backup & Restore Instructions

Moving BidMagic to a new system (Backup / Restore Utility)

Transcription:

Backup Procedures for IT Staff User Guide Page 1 of 12

Table of Contents PCSchool Backup Guide... 3 What do I need to Back Up:... 3 Non SQL - Data 3 SQL- Data 3 Programs 3 Backup Frequency for PCSchool Folders... 4 External Files... 4 Backing up the SQL Databases.... 4 An ideal solution would be: 5 Snapshots... 5 SQL Database backup from within the SQL Server Management Console.... 6 Backing Up Within PCSchool... 10 How to create a Backup within PCSchool 10 Export files... 12 Restoring from a Backup... 12 Page 2 of 12

PCSchool Backup Guide This guide is to be used alongside your school s current backup strategy. It describes procedures that will minimise the chance of data loss for PCSchool. As with any Backup procedure, it can impact on the overall performance of the network. The frequency of back up needs to be determined by the school, taking into account regulatory requirements. It is important that backups are stored on a separate computer to where the live files are in case of hardware failure. It is also advisable to have backups stored on an off-site location in case of significant site damage (fire/earthquake). With schools hosting PCSchool on a Virtual Server, a daily server Backup covers the file based backup requirement, but recovery of SQL Databases is not always an easy process from these, hence it is recommended that an SQL Database strategy is also in place. It is important to keep a sequence of Backups, as missing data is not always discovered immediately. Backing up prior to making any major changes within PCSchool is highly recommended. This can be done at a table level through Utilities->Backup (providing the user has appropriate security) or at a Database level if using an SQL Server. What do I need to Back Up: The three main aspects of PCSchool to consider when backing up are the data, the programs and the external documents that are produced by PCSchool (e.g. Reports, statements, payslips). Non SQL - Data For Non-SQL Schools, the information (data) is stored within the PCSchool folder structure. The main workarea data is stored within the Data sub folder of PCSchool. If using more than one live Workarea, a corresponding folder will exist. A copy of the Data folder and other live Workarea folders will allow a full data recovery. SQL- Data For SQL Schools, most of the data is stored within the SQL Server within a database called PCSchool, although there are still a few DataFlex tables within the Data folder. For this reason, when SQL schools undertake a major update, or complete a roll-over, both the SQL Database and the Data folder needs to be backed up (not the sub folders). The combination of the Data folder with the SQL Database will allow a full recovery. If more than one workarea is being used, the matching SQL Database and PCSchool folder need to be backed up as well. Programs The PCSchool program is written to expect a certain data structure. The data structure must be of the same or greater version than the program. If the program version is greater, it will trigger a data structure update (a process that needs careful monitoring as it modifies the data tables). The program cannot run until this has been successfully completed. For this reason, a backup of the Programs folder is required prior to an update so they can be wound back if needed. Page 3 of 12

Backup Frequency for PCSchool folders Below is a guide to frequency that the PCSchool folders need to be backed up, although some schools may decide to do this more frequently to prevent interim data loss: Bitmaps: Prior to a Data Update and after Student/Staff images have been added Data (SQL): Prior to a Data Update or Rollover Data (NonSQL): See preferred schedule overleaf Live Workareas: See preferred schedule overleaf Old workareas: After creation, then stored on media (EG DVD, USB Drive) as they usually do not change. Programs: Prior to Update or Follow-up Reports: After new reports are added External Files Many schools are now utilising the Document Management aspect of PCSchool. This allows for PDF versions of accounts, pay slips, school reports and a variety of other information to be stored against a student, staff or family member. The document management path is set by the school, with the default location being a folder named Documents in the PCSchool\Data folder. The path can be changed under Utilities->System File Maintenance, second tab Non Financial Defaults. This location should be backed up daily to ensure any new documents saved into it are recoverable. New Zealand Schools need to back up the MOE files under the PCSchool\Documents folder after the March and July returns. These need to be archived for later auditing. Backing up the SQL Databases. The main database for PCSchool is called PCSCHOOL. Some schools may have other live workareas which will have a name reflecting their purpose. For each current database, a minimum of a daily backup should be performed. If running the full version of SQL Server, a Maintenance Plan can be set up within the SQL Server to accomplish this. If running the Express version, an external script can be set up on the server to achieve this. Please contact PCSchool for a copy of this script. It is strongly advised to maintain a set of Backup files rather than having only the latest Backup. Sometimes a discrepancy in the data may not be detected for several days, in some cases weeks. The number of days kept will depend on storage capacity, as well as the potential value held in data that is old. Page 4 of 12

An ideal solution would be: 1. A FULL Monday backup 2. Then with incremental throughout the week 3. Then at the end of the week, this file should be archived and the process repeated each week e.g. Week 1 Monday{FULL} + Tuesday{Inc} + Wednesday{Inc} + Thursday{Inc} + Friday{Inc} 4. Week 2 Monday{FULL} + Tuesday{Inc} + Wednesday{Inc} + Thursday{Inc} + Friday{Inc} Week 3 Snapshots Snapshots are generally used for reference purposes, once created, they should be Backed up with their current name (e.g. CURR2013) and stored in a separate location in case of catastrophic server failure. If used for reference only, they do not need to be backed up like the live databases however check with your administrative staff as it is possible to make changes with them. Page 5 of 12

SQL Database backup from within the SQL Server Management Console. 1. Log on to the SQL server in the Management studio 2. Right click on a Database e.g. PCSchool Tasks Backup (as per screen shot) Page 6 of 12

This process will load up the Backup database selection interface: 3. Source: Database: select which database to backup i.e. PCSchool 4. Backup type: Full 5. Backup component: Select - Database 6. Backup set: Name - PCSchool-Full Database Backup 7. Backup set will expire: After select 0 days Destination: Normally you can have a single Backup file name for each database and every time overwrites the same backup. 8. Or You can select different Backup file for each time (with respect to the date time). In this case, you need to Remove the current Destination path and press add to select a new folder or file name. 9. OK Page 7 of 12

Once it s done, go to the Options on left side panel. 1. Select Overwirte all existing backup sets 2. Select - Verify backup when finished 3. OK (This will start the Database Backup) Page 8 of 12

Backing Up Using A Script File The following script allows a backup to be automated from outside of the SQL Management Server. The example script maintains a 7 day cycle, however this script can be modified to increase/decrease the number of days maintained. Download the following file and extract it into the location on the SQL Server you wish to create the backups. It is recommended that this is on the root level of the drive in a folder without spaces to ensure the script functions correctly (E.g. C:\SQLBackups) http://www.pcschool.net/download/backupscript.zip Once extracted, both files will need to be edited. The BackupPCSchool.cmd file also needs to be set up as a scheduled task, run at an interval you wish to make the full backup. A daily backup is recommended. By default, this script will maintain 7 full backups, so ensure you have enough storage space to cater for this. When editing these files, replace the square brackets with your own details. Below is an example based on the path mentioned above with pcschool being the main database, ADRIANSERVER the SQL Server name, pcschool the SQL user with pcspassword the pcschool SQL user s password. Changes you make are in bold. BackupPCSchool.cmd REM Backup the PCSchool SQL Database keeping previous 7 echo on REM Rename previous backups del "C:\SQLBackups\PCschool_7.bak" /q ren C:\SQLBackups\PCschool_6.bak" "PCschool_7.bak" ren "C:\SQLBackups\PCschool_5.bak" "PCschool_6.bak" ren "C:\SQLBackups\PCschool_4.bak" "PCschool_5.bak" ren "C:\SQLBackups\PCschool_3.bak" "PCschool_4.bak" ren "C:\SQLBackups\PCschool_2.bak" "PCschool_3.bak" ren "C:\SQLBackups\PCschool_1.bak" "PCschool_2.bak" ren "C:\SQLBackups\PCschool_0_Latest.bak" "PCschool_1.bak" REM Remove any log files greater than 10 days old Forfiles /p C:\SQLBackups /m *.log /d 10 /c "cmd /c del @file" REM Perform backup sqlcmd -S ADRIANSERVER -U pcschool -P pcspassword -i C:\SQLBackups\BackupPCSchool.sqlcmd -o C:\SQLBackups\output.log BackupPCSchool.sqlcmd BACKUP DATABASE pcschool TO DISK = N'C:\SQLBackups\PcSchool_0_Latest.bak' WITH NOFORMAT, NOINIT, NAME = N'PcSchool-Full Database Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10 GO Page 9 of 12

Backing Up Within PCSchool Given the appropriate security, users are able to backup any particular table through the: Utilities->Backup option (this creates a zip file containing the selected tables with a corresponding file name to the table - with a.tmp extension) (In reality, this is a.csv which can be opened within Excel or any CSV editor) When creating a Backup, it does not over-write any.tmp files that have been created by the Export process, instead creating a temporary file with time being part of the file name. How to create a Backup within PCSchool 1. Utilties - Backup 2. Select All Files 3. Select All 4. Backup Data Page 10 of 12

This process may take some time, and once it s completed, it will show the below screen asking where to copy the backup to. 1. Destination (By default it s copied to the Backup folder inside the work area folder.) This can be changed 2. File Name (The backup files are zipped and has the time stamp on the file name) This can be changed if required 3. Select - Create Backup Page 11 of 12

It is critical that you check that this file has been created. The logged in user must have permission to write to the default location, or this needs to be 4. changed prior to pressing the Create Backup button. After completion, ALWAYS browse to the location to check that the file is present. 5. This process can be repeated on different work areas. Export files Export each table from PCSchool under the Utilities->Data Import/Export. When exporting a table, a file with the matching table name is created with a.tmp extension. The files are saved in the corresponding work area folder of the PCSchool folder, with the Main Workarea being saved within the Data folder. Restoring from a Backup As well as a complete restoration from a Backup, it is possible to restore a Backup into a separate Workarea, then extract and reimport data at a table level. This is performed when an error has occurred in a particular area of PCSchool which does not impact on others. Please contact PCSchool support staff for advice prior to restoring data. Page 12 of 12