See Also


Backup SQL Database

This information only applies to installations with Amadeus - PMPRO version 10.1 with a SQL Server configuration and all installation with Amadeus - PMPRO version 10.2 and newer.

 

If you use a version of Amadeus - PMPRO 10.1 or Amadeus - PMPRO 10.2,  critical data is stored in a SQL database for added security. An SQL database can usually not be included in a third party backup system because it is in use by Microsoft SQL server. An SQL backup system can be configured as indicated below. The resulting backup file can then be included in the third party backup system and/or the copy & compress backup.

Create backup folder and batch file

  1. Create a new folder SQLBackup in the PMS folder.

  2. Download the PMPROSQLbackupTasks.zip file and unzip it into the \Brilliant\Setups folder.

  3. Copy the \Brilliant\Setups\PCI\PMPROSQLbackup.bat file into the \Brilliant\PMS folder.

  4. Right click the PMPROSQLbackup.bat file and choose edit. Example.

  5. Verify the backup location in variable1 indicated in bold below. This should point to the folder you created in step 1. Change if needed.

  6. Verify the @DatabaseName in the :BACKUP section. This should be the name of the SQL database. Only change incase the actual name is different then the default name 'PMPRO'.

Create Stored Procedure

A stored procedure in the database takes care of the backup process.

  1. Open SQL Server Management Studio

  2. Expand \pcname\SQLEXPRESS

  3. Expand Databases

  4. Select the PMPRO database

  5. Open the \Setups\PCI\PMPRO_SQL_backup_Databases_StoredProcedure.sql scrip file. This opens a new Query window.

  6. Execute the SQL command

  7. Expand Security

  8. Expand User

  9. Right click PMPROdbuser and select properties

  10. Check if the user has the following Database Role Memberships

Create a Scheduled Task (!! Change the path 'C:\Brilliant\PMS\PMPROSqlBackup.bat' to match the folder on the server!!)

Windows task scheduler is used to execute the backup.

 

From Server 2003

  1. Enter the following entry in the RUN command box:

at \\<serverIPaddress> 00:01 /every:m,t,w,th,f,sa,su 'C:\Brilliant\PMS\PMPROSqlBackup.bat'

e.g. at \\10.0.31.12 00:01 /every:m,t,w,th,f,sa,su 'C:\Brilliant\PMS\PMPROSqlBackup.bat'

  1. Click OK

  2. Reopen the RUN command box

  3. Change the line to:

at \\<serverIPaddress> 12:01 /every:m,t,w,th,f,sa,su 'C:\Brilliant\PMS\PMPROSqlBackup.bat'

  1. Click OK

  2. Open the Scheduled Tasks from the Control Panel

  3. Rename the task 'at1' to 'PMPROSQLbackup1' and rename the task 'at2' to 'PMPROSQLbackup2'

From Server 2008

  1. Open the Scheduled Tasks from the Control Panel or Administrative Tools

  2. Click 'Create Task'

  3. Name the task 'PMPROSQLbackup1'

  4. Enable 'Run whether user is logged on or not'

  5. Enable 'Do not store password. The task will only have access to the local resources'

  6. Click the Triggers tab » [New]

  7. Click the Triggers tab » [New]

  8. Click the Actions tab » [New]

  9. Click on the settings tab

  10. Click [OK]  

Test the Task

  1. Open the Scheduled Tasks from the Control Panel or Administrative Tools

  2. Right click on the task 'PMPROSQLbackup1' and click run then repeat for 'PMPROSQLbackup2'

  3. Check if a file called PMPRO-FULL.BAK (where PMPRO will be the database created for PMPRO)

  4. When the file is not created please check the 'Problem History' and the steps in the procedure.

PMPRO Preferences

Make sure the PMPRO copy & compress feature does not exclude the BAK file extension.

  1. Start PMPRO

  2. Go to Setup » Preferences and open the [Compress] tab.

  3. Make sure the File extensions to Exclude from the Copy & Compress procedure setting does not contain the BAK file extension.

Problem History

  1. Backup file is not created: target location in the PM PROSQLbackup.bat is incorrect

  2. Backup file is not created: administrator user has no access rights to the PMPRO database

  3. Backup file is not created: PMPROdbuser user has no access rights to the PMPRO database