Creating a Database Backup
From NewHaven Software Wiki
Russ horton (Talk | contribs) (→Setting up CMS to create a daily backup) |
Russ horton (Talk | contribs) |
||
Line 12: | Line 12: | ||
#Select 'Perform the daily backup at the time and in the folder specified below' | #Select 'Perform the daily backup at the time and in the folder specified below' | ||
#Under Time to Backup, set the time you wish the backup to be created at. | #Under Time to Backup, set the time you wish the backup to be created at. | ||
- | #Check mark 'Truncate the log' | + | #Check mark 'Truncate the log' (see below) |
#Under 'Folder in which to create backup image' select Browse | #Under 'Folder in which to create backup image' select Browse | ||
#Highlight the folder you wish to create the backup in (Please note: The Sybase service, which by default runs as LocalSystem, cannot access network drives, only local.) | #Highlight the folder you wish to create the backup in (Please note: The Sybase service, which by default runs as LocalSystem, cannot access network drives, only local.) | ||
Line 26: | Line 26: | ||
As of CMS TEN, there is one exception to the above. You'll also need to have a copy of your CMSdbo.ini file. This file does not change daily but it can change every 90 days or when a CMS update is installed. This file contains an encrypted portion of a partial password that CMS uses to access the database. Without this file CMS cannot run and it is unique to you and your database. Be sure to also have a copy of this in your offsite backups and as part of any backup restoration procedure. If you do not have this file and need to restore a backup, the database file will have to be sent to NewHaven Software where the password can be reset. This process is time consuming and is not part of standard support. | As of CMS TEN, there is one exception to the above. You'll also need to have a copy of your CMSdbo.ini file. This file does not change daily but it can change every 90 days or when a CMS update is installed. This file contains an encrypted portion of a partial password that CMS uses to access the database. Without this file CMS cannot run and it is unique to you and your database. Be sure to also have a copy of this in your offsite backups and as part of any backup restoration procedure. If you do not have this file and need to restore a backup, the database file will have to be sent to NewHaven Software where the password can be reset. This process is time consuming and is not part of standard support. | ||
+ | |||
+ | ====Truncating the Log==== | ||
+ | For normal operation we recommend that you run with the Truncate option enabled. Truncation keeps the size of your log file down to only include database changes since your last backup. This will save space on your server and potentially improving performance. Typically you'd only run with truncation disabled if you're working with NewHaven Software Support to troubleshoot a problem that cannot be replicated and need to build up a log file over time. | ||
+ | |||
+ | Truncation occurs during the schedule backup event but does not occur when creating an immediate backup (see below.) | ||
==How to have CMS create an immediate backup of your database== | ==How to have CMS create an immediate backup of your database== |
Revision as of 23:40, 3 March 2016
Contents |
Overview
This article covers how to create a Database backup in CMS 8.0 or later.
Setting up CMS to create a daily backup
To have CMS automatically create a backup of your database to a specified folder, please follow the instructions below.
- Log into your PCI Administration account
- Select the PCI Administration drop down menu
- Select Administration
- Select Daily Backup
- Select 'Perform the daily backup at the time and in the folder specified below'
- Under Time to Backup, set the time you wish the backup to be created at.
- Check mark 'Truncate the log' (see below)
- Under 'Folder in which to create backup image' select Browse
- Highlight the folder you wish to create the backup in (Please note: The Sybase service, which by default runs as LocalSystem, cannot access network drives, only local.)
- Select Ok
- Select Save these settings now.
CMS will now create a backup to that specified folder, every day, at the time you have specified.
Important Info on Backup Routines
Your database is a single file and contains all of your data. This file is locked by the Sybase database server, however, and cannot be copied, moved, deleted, or backed up. Using the above backup schedule allows Sybase to create a copy of its live database without having to shut down the database server. This also allows for 24/7 operation without having to stop to facilitate a backup.
The backup of your database is almost all you need in order to recover from catastrophe like a failed drive, stolen server, or office fire (we've seen all of these.) Make sure you're backing up nightly and taking/uploading copies offsite regularly. The rest of your CMS install can be reinstalled in minutes, drop your backup in, and your back in business. No need to backup/protect the rest of the files in the NewHaven Software server share.
As of CMS TEN, there is one exception to the above. You'll also need to have a copy of your CMSdbo.ini file. This file does not change daily but it can change every 90 days or when a CMS update is installed. This file contains an encrypted portion of a partial password that CMS uses to access the database. Without this file CMS cannot run and it is unique to you and your database. Be sure to also have a copy of this in your offsite backups and as part of any backup restoration procedure. If you do not have this file and need to restore a backup, the database file will have to be sent to NewHaven Software where the password can be reset. This process is time consuming and is not part of standard support.
Truncating the Log
For normal operation we recommend that you run with the Truncate option enabled. Truncation keeps the size of your log file down to only include database changes since your last backup. This will save space on your server and potentially improving performance. Typically you'd only run with truncation disabled if you're working with NewHaven Software Support to troubleshoot a problem that cannot be replicated and need to build up a log file over time.
Truncation occurs during the schedule backup event but does not occur when creating an immediate backup (see below.)
How to have CMS create an immediate backup of your database
- Log into your PCI Administration account
- Select the PCI Administration drop down menu
- Select Administration
- Select Daily Backup
- Under 'Folder in which to create backup image' select Browse
- Highlight the folder you wish to create the backup in (Please note: CMS can NOT Create a backup to a networked drive, only local drives)
- Select Ok
- Select 'Immediately create a Backup Image in the specified folder'
CMS will create a backup to the folder you have specified.