Backing Up TestTrack Native Project Databases



Similar documents
1. Product Information

Online Backup Client User Manual Linux

RecoveryVault Express Client User Manual

Online Backup Linux Client User Manual

Online Backup Client User Manual

Online Backup Client User Manual

NAS 253 Introduction to Backup Plan

IBM WebSphere Application Server Version 7.0

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

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

Online Backup Client User Manual

Online Backup Client User Manual Mac OS

Online Backup Client User Manual Mac OS

Protecting SQL Server Databases Software Pursuits, Inc.

NetVanta Unified Communications Server Backup and Restore Procedures

2. Unzip the file using a program that supports long filenames, such as WinZip. Do not use DOS.

XCloner Official User Manual

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

Managing Software and Configurations

Server & Workstation Installation of Client Profiles for Windows

Browser Client 2.0 Admin Guide

STATISTICA VERSION 9 STATISTICA ENTERPRISE INSTALLATION INSTRUCTIONS FOR USE WITH TERMINAL SERVER

AVALANCHE MC 5.3 AND DATABASE MANAGEMENT SYSTEMS

Capture Pro Software FTP Server System Output

Installing and Configuring Login PI

WS_FTP Professional 12

Installing SQL Express. For CribMaster 9.2 and Later

Introweb Remote Backup Client for Mac OS X User Manual. Version 3.20

Fuse ESB Enterprise Installation Guide

Server & Workstation Installation of Client Profiles for Windows (WAN Edition)

MIGRATING TO AVALANCHE 5.0 WITH MS SQL SERVER

Yale Software Library

Polycom CMA System Upgrade Guide

Upgrading MySQL from 32-bit to 64-bit

Moving the TRITON Reporting Databases

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

Using Microsoft Expression Web to Upload Your Site

BestSync Tutorial. Synchronize with a FTP Server. This tutorial demonstrates how to setup a task to synchronize with a folder in FTP server.

Installation Instruction STATISTICA Enterprise Small Business

Installation Guide. (You can get these files from

Using SSH Secure FTP Client INFORMATION TECHNOLOGY SERVICES California State University, Los Angeles Version 2.0 Fall 2008.

SafeNet Authentication Manager Express. Upgrade Instructions All versions

Backing Up and Restoring the Database

FireBLAST Marketing Solution v2

Installing Exchange and Extending the Active Directory Schema for Cisco Unity 8.x

Click to begin. Maitre'D Full System Backup & Restore

Local Caching Servers (LCS): User Manual

TM Online Storage: StorageSync

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

insync Installation Guide

SPI Backup via Remote Terminal

SECURE USER GUIDE OUTLOOK 2000

Mac Client Installation Notes

2. Installation Instructions - Windows (Download)

Creating a Domain Tree

Introduction Deploying Deep Freeze Enterprise with BigFix

DocuShare Installation Guide

Tivoli Access Manager Agent for Windows Installation Guide

STIDistrict Server Replacement

Setting Up the Device and Domain Administration

5.6.3 Lab: Registry Backup and Recovery in Windows XP

Gladinet Cloud Backup V3.0 User Guide

Secure Messaging Server Console... 2

Keystone 600N5 SERVER and STAND-ALONE INSTALLATION INSTRUCTIONS

Introduction and Overview

Installation Guidelines (MySQL database & Archivists Toolkit client)

Out n About! for Outlook Electronic In/Out Status Board. Administrators Guide. Version 3.x

SAS 9.3 Foundation for Microsoft Windows

Installation Manual Version 8.5 (w/sql Server 2005)

A-AUTO 50 for Windows Setup Guide

Table of Contents SQL Server Option

Upgrading Centricity Electronic Medical Record Service Packs on Microsoft Windows Server

WhatsUp Log Management Installation and Migration Guide, including Getting Started Information. (Applies to v and later)

Upgrade Guide BES12. Version 12.1

NovaBACKUP xsp Version 15.0 Upgrade Guide

Acronis Backup & Recovery 11

Mobile Labs Plugin for IBM Urban Code Deploy

13.1 Backup virtual machines running on VMware ESXi / ESX Server

Installing (1.8.7) 9/2/ Installing jgrasp

BSDI Advanced Fitness & Wellness Software

Setting up Citrix XenServer for 2X VirtualDesktopServer Manual

Using Windows Task Scheduler instead of the Backup Express Scheduler

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

Figure 1: Restore Tab

Start Here. Installation Guide. Rosetta Stone Standalone License. This Guide Will Show You How To: Install the Student Management System...

TCH Forecaster Installation Instructions

NDSR Utilities. Creating Backup Files. Chapter 9

Upgrading Your Web Server from ClientBase Browser Version 2.0 or Above to Version 2.1.1

How To Backup Your Computer With A Remote Drive Client On A Pc Or Macbook Or Macintosh (For Macintosh) On A Macbook (For Pc Or Ipa) On An Uniden (For Ipa Or Mac Macbook) On

Installing and Using the Zimbra Reporting Tool

owncloud Configuration and Usage Guide

Management Utilities Configuration for UAC Environments

How To Upgrade Your Microsoft SQL Server for Accounting CS Version

Selected Windows XP Troubleshooting Guide

Snow Inventory. Installing and Evaluating

PaperStream Connect. Setup Guide. Version Copyright Fujitsu

Online Backup Client Release Notes

SplendidCRM Deployment Guide

Primavera P6 Professional Windows 8 Installation Instructions. Primavera P6. Installation Instructions. For Windows 8 Users

Transcription:

Backing Up TestTrack Native Project Databases TestTrack projects should be backed up regularly. You can use the TestTrack Native Database Backup Command Line Utility to back up TestTrack 2012 and later native (SQLite) project databases without stopping the TestTrack Server. You can use the utility in a command shell (Unix) or at a DOS prompt (Windows). Note: The utility only backs up projects, not TestTrack Server databases, and can only be used for TestTrack 2012 and later native projects. See Backing Up TestTrack Databases for information about backing up server databases and older project versions. Keep the following in mind when backing up project databases: If backing up while the TestTrack Server is running, the utility updates the backup as changes are made to the project. Because these backups may take longer and users may encounter slower performance, you may want to schedule backups to run overnight. See Scheduling backups, page 2. File attachments are stored in subdirectories in project databases. If users make changes to attachments during a backup, the backup may contain extra or missing attachment information. Note: The following information applies to the TestTrack Native Backup Command Line Utility 1.3 and later. Performing backups The backup contains an exact copy of the TestTrack project directory you specify. By default, the backup is added to a.zip file to compress it. You can optionally skip creating the zip file and create only the directory instead. Keep the following in mind before running the backup utility: Only run the utility from the TestTrack Server computer. Attempting to back up databases from a remote computer could cause data loss or corruption. You may need administrative rights to perform the backup (e.g., sudo on Unix or Run as administrator on Windows). During the backup, approximately twice the disk space as the database uses is needed to store temporary files. Make sure there is enough free disk space before backing up. 1. Download the backup utility and save it in the TestTrack Server application directory. The utility is named ttnativebackuputil.exe. 2. Open a command shell or DOS prompt. 3. Change (cd) to the directory that contains the backup utility. 4. Enter the following at the prompt: ttnativebackuputil [-f] [-n] SourceProject 1

Scheduling backups Option -f Overwrite backup.zip if it exists (optional). -n Do not zip the backup directory (optional). If a directory with the same name exists, it is automatically renamed, a new directory with the contents is created, and then the old directory is deleted if the backup is successful. SourceProject Full or relative path to the TestTrack native database directory to back up. Projects are each stored in a subdirectory in the TTServDb directory by default, but they may be stored in other locations depending on your configuration. Full or relative path and file name for the.zip backup file. The.zip extension is automatically added if not included. Note: To view help for the backup utility, enter ttnativebackuputil -h. To view version information, enter ttnativebackuputil -v. Examples Windows ttnativebackuputil.exe C:\TestTrack\TTServDb\TTDbs\Sample Project\ C:\MyBackup.zip ttnativebackuputil.exe -f MyProject\ C:\MyBackup.zip Unix./ttNativeBackupUtil /var/lib/testtrack/ttservdb/ttdbs/sample\ Project /home/currentuser/mybackup.zip./ttnativebackuputil -f MyProject/ mybackup.zip sudo./ttnativebackuputil -f MyProject/ mybackup.zip (Administrative permissions may be needed to execute this command) Scheduling backups You can use Cron (Unix) or Task Scheduler (Windows) to schedule recurring TestTrack project database backups. Cron (Unix) 1. Enter crontab -e. 2. Enter the following command: minute hour day month dow user BackupUtilityPath [-f] SourceProject 2

Scheduling backups Option minute Minute when the backup should run. Valid values are 0-59. hour Hour of the day when the backup should run. Valid values are 0-23. day Day of the month when the backup should run. Valid values are 1-31 or an asterisk (*) for every day. month Month of the year the backup should run. Valid values are 1-12 or an asterisk (*) for every month. dow user BackupUtilityPath Day of the week when the backup should run. Valid values are 0-6 or an asterisk (*) for every day. Use 0 for Sunday. Username required to run the command prompt. Specify the root user if scheduling a backup while the TestTrack Server is running. Full path to the backup utility. -f Overwrite backup.zip if it exists. This option is not required, but it is recommended for recurring backups to ensure old backup files are replaced with new ones. SourceProject Full path to the TestTrackdatabase directory to back up. Full path and file name for the.zip backup file. For example, C:\Backups\WysiCorpCompliance.zip. Task Scheduler (Windows) 1. Choose Start > Programs > Accessories > System Tools > Scheduled Tasks. 2. Double-click Add Scheduled Task. The Scheduled Task Wizard opens. 3. Select the TestTrack Native Backup Command Line Utility as the program to run. 4. Enter a task name, select when to perform the backup, and enter the username and password to use to run the utility. 5. Optionally select Open advanced properties for this task when I click Finish to specify backup file overwrite in the scheduled task. This option is recommended for recurring backups to ensure old backup files are replaced with new ones. 6. Click Finish. The backup task is scheduled. The Advanced Properties dialog box opens if you selected the option. 7. Enter the -f option in the run command and click OK to save the changes. 3

Analyzing backup return codes Analyzing backup return codes When running a back up from a batch script, it is critical to make sure it completes successfully. The backup utility returns error codes to indicate problems that occur. A return code of 0 (zero) indicates success. A nonzero return code indicates an error. If you are running the backup utility from a DOS batch file, you can use %ERRORLEVEL% to view the return code. For example: ttnativebackuputil.exe -f MyProject\ C:\MyBackup.zip IF %ERRORLEVEL% NEQ 0 echo Backup failed with error %ERRORLEVEL% Error codes The backup utility may return the following error codes. Error code 525 The project backup could not be placed in a temporary directory due to a permission error. Check temporary file permissions and retry the backup. 526 The project backup could not be placed in a temporary directory due to an I/O error. Retry the backup later. 527 The backup database created in a temporary directory could not be opened. Check temporary file permissions and retry the backup. 528 A TestTrack native project database was found in the temporary directory and could not be deleted. Check temporary file permissions and retry the backup. 529 An unknown error occurred when copying the project to a temporary directory. Retry the backup later. 531 A read-only TestTrack native project database was found in the temporary directory. Check temporary files permissions and retry the backup. Restoring backups To restore a backup, copy the files to a TestTrack project directory. Note: If you are restoring from a.zip backup file on Mac OS X 10.8 and earlier, you must upgrade to Info- Zip 6 or later to unzip the file. 1. Stop the TestTrack Server. 2. If you are restoring to an existing project directory, move or delete the ttproj.db-shm and ttproj.db-wal files in the directory. These are transaction log files generated when projects load. If you do not delete these files, the restored ttproj.db file will be corrupted and projects will not load. 3. If the backup is stored in a.zip file, extract it to the project directory. 4

Restoring backups 4. Move the backup contents to the TestTrack project directory. 5. Start the TestTrack Server. 6. In the TestTrack Server Admin Utility, add the existing projects to the server. If the project ID is already used on the TestTrack Server you are prompted to change it. 7. Click Yes to change the project ID. 5