Automated backup of the LumaSoft Gas database Contents How to enable automated backup of the LumaSoft Gas database at regular intervals... 2 How to restore the LumaSoft Gas database... 13 BE6040-11 Addendum for LumaSoft Gas Page 1 of 15
How to enable automated backup of the LumaSoft Gas database at regular intervals A. Start the SQL Server Management Studio Express application. B. Wait for the app to startup (it only happens the first time the app is started). BE6040-11 Addendum for LumaSoft Gas Page 2 of 15
C. As Authentication select SQL Server Authentication Use login: sa and Password: Lumasoft1 Press the Connect button to continue D. Expand the Databases folder by clicking the + sign to the left of it. BE6040-11 Addendum for LumaSoft Gas Page 3 of 15
E. Right-click on the LumaSoftGas database and select Tasks->Back Up F. Choose the Options page and select Overwrite all existing backup sets and tick Verify backup when finished BE6040-11 Addendum for LumaSoft Gas Page 4 of 15
G. Choose Script Action to File in order to make a database backup script file H. Now create a folder to be used for saving the script file BE6040-11 Addendum for LumaSoft Gas Page 5 of 15
I. Write a name for the script file and press the Save button in order to create the script file. J. When the script file is successfully created you will get the message Scripting completed successfully in the lower left corner. K. Close the SQL Server Management Studio Express application. BE6040-11 Addendum for LumaSoft Gas Page 6 of 15
L. Open the Notepad editor ( to be found in All Programs->Accessories ) and enter the following content. Replace the name of your computer with the text marked as red and replace the folder name where you previously saved the backup script file, with the text marked as green. Below a description of the sqlcmd parameters. sqlcmd parameter Description -U sa login id -P Lumasoft1 password -S Per-PC\LUMASOFTGASDB server -l 20 login timeout -i C:\Users\p.hessel\Documents\7860backup\7860backupScript.sql inputfile -o Log.txt outputfile M. Save the file in the same folder as the backup script file and name it RunBackup.bat. Please make sure that the file is not of.txt type but of.bat type. BE6040-11 Addendum for LumaSoft Gas Page 7 of 15
N. Open the Control Panel and change the view into Large Icons and open Administrative Tools O. Start the Task Scheduler by making a double-click P. Choose Create Task.. action BE6040-11 Addendum for LumaSoft Gas Page 8 of 15
Q. Enter Name:, Description: and Configure for: as shown below. Press the OK button. R. Select the Triggers tab and press the New button BE6040-11 Addendum for LumaSoft Gas Page 9 of 15
S. Enter the desired time schedule and interval for the database backup and press the OK button when finished T. The database backup schedule (trigger) is listed. BE6040-11 Addendum for LumaSoft Gas Page 10 of 15
U. Select the Action tab and press the New button BE6040-11 Addendum for LumaSoft Gas Page 11 of 15
V. Press the Browse button and find the RunBackup.bat that you have created previously. As the Start in (optional): folder type in the folder name for the RunBackup.bat file. Press the OK button when finished. W. Close the Task Scheduler. This concludes the setup of the automated backup of the LumaSoft Gas 7860 database. BE6040-11 Addendum for LumaSoft Gas Page 12 of 15
How to restore the LumaSoft Gas database A. Start the SQL Server Management Studio Express application. B. Wait for the app to startup (it only happens the first time the app is started). C. As Authentication select SQL Server Authentication Use login: sa and Password: Lumasoft1 Press the Connect button to continue BE6040-11 Addendum for LumaSoft Gas Page 13 of 15
D. Expand the Databases folder by clicking the + sign to the left of it. E. Right-click on the LumaSoftGas database and select Tasks->Restore->Database BE6040-11 Addendum for LumaSoft Gas Page 14 of 15
F. Choose the Options page and tick Overwrite the existing database. Press the OK button to restore the LumaSoft Gas 7860 database. G. A successful restore results in the following message. Press OK to continue. Close the SQL Server Management Studio Express application. BE6040-11 Addendum for LumaSoft Gas Page 15 of 15