CRS - Backup

About

This page describes how the CRS backup shall be performed. 

images/s/-3eliqb/8502/404359a7d2ab19c9c7c58d12013124a386b28257/_/images/icons/emoticons/lightbulb_on.svg Note: We recommend to perform the backup on a daily basis and before every update to the newer version of YSoft SafeQ.

images/s/-3eliqb/8502/404359a7d2ab19c9c7c58d12013124a386b28257/_/images/icons/emoticons/lightbulb_on.svg Note: The backup shall be always copied to the safe destination. The safe destination is not present in the same server where CRS is installed - safe backup destination is a different server or any backup depository.

CRS backup procedure using Backup.bat

1

Skip this step in case you have the pre-configured installation files for CRS

Extract crs.zip file from YSoft SafeQ installation media into local drive.

Configure DeploymentConfig configuration files for CRS installation according to CRS configuration page.

images/download/attachments/21955764/1.PNG

2

Make sure that the destination for backup is configured per your needs. CRS will be stored in the folder defined in the installer settings (DeploymentConfig\crs\env.ini).

### --------------------------------------------------------------------------
## BACKUP ACTION
# Backup directory (for storing CRS files backup and database dumps)
# Default: C:/SafeQCRS-Backups
backupDir=C:/SafeQCRS-Backups
 
# Max roll count of created backups of CRS files
# Default value: 3
backupFilesMaxRollFileCount = 3
### --------------------------------------------------------------------------

3

Begin the backup process by running the backup.bat (stored in InstallPackages folder).

Enter the environment name when asked.

The environment name is the path leading to CRS configuration files (for example if the configuration is stored in C:\CRSinstall\DeploymentConfig\crs\TEST\node1\env.ini, you would use the environment name as: crs\TEST\node1) 

 

The backup will perform following operations:

  1. Create backup folder according to backupDir setting in env.ini (if backupDir does not exist already).  

  2. Perform database backup for following databases:

  • yBoxDB

  • yBoxDBCDC

3.   Create SafeQCRSBackup.zip which contains backup of:

  • bin\

  • build\

  • conf\

images/download/attachments/21955764/2.PNG  

4

Close installation prompt after successful backup.

images/download/attachments/21955764/3.PNG  

5

Copy the backup to any safe destination. Example of files that were created by backup and that shall be copied to the safe destination:

  • dump_yBoxDB_201304041523.backup

  • dump_yBoxDBCDC_201304041523.backup

  • SafeQCRSBackup.zip

images/s/-3eliqb/8502/404359a7d2ab19c9c7c58d12013124a386b28257/_/images/icons/emoticons/lightbulb_on.svg  Note: This way of backup may be automated by setting up a scheduled task for "backup.bat" in the Task Scheduler.

To make it possible to schedule a regular unattended backup, some command-line parameters must be used to avoid the backup script pausing and waiting for user input. The minimum set of parameters needed to achieve this is:

  • -env <EnvironmentName>

  • -nopause

For example, the complete command line could be:

InstallPackages\backup.bat -nopause -env crs\TEST\node1

 

 

CRS backup procedure (manual)

images/s/-3eliqb/8502/404359a7d2ab19c9c7c58d12013124a386b28257/_/images/icons/emoticons/lightbulb_on.svg The procedure is describing steps for database backup via SQL Server 2008 R2. The procedure for another database server may slightly differ. Please see documentation of your SQL server for more details.

1

Open SQL Server Management Console and connect to the database engine.

images/download/attachments/21955766/1.PNG

2

Backup all YSoft SafeQ CRS databases:

  • yBoxDB

  • yBoxDBCDC

Select the database and use right-click to display the context menu.

Select Tasks > Back Up...

images/download/attachments/21955764/2b.png

3

Add the Destination and the database backup name.

Click OK to start the backup process.

images/download/attachments/21955764/3b.PNG

4

Repeat steps 2-3 for all SafeQ CRS databases.

  • yBoxDB

  • yBoxDBCDC

images/download/attachments/21955764/4b.PNG

5

Backup all followings subfolders from SafeQCRS folder to the backup directory.                                                                                                                                                                                      

  • bin

  • build

  • conf

images/download/attachments/21955764/5b.PNG

6

Copy the database backups and the directory backups to any safe destination.

CRS backup & restore using virtual machine snapshot

In case the CRS and the database is installed on the virtual platform, you can also use the virtual machine snapshot functionality for a regular system backup. By restoring the CRS from the previous snapshot you will loose all the statistical data that were processed between the last time of backup and the time of the failure. This is generally not a problem as the CRS will be able to synchronize the missing statistical data (max 1 month old) from the CML in case the CML does not experience the failure also. However we still recommend the following:

  • perform the backup in a stopped state of the virtual machine

  • perform the backup on a daily basis