Back up and Restore Database

Back Top Previous Next

The following explains how to restore a training database from the live database, however the process is the same for restoring any database.

 

Having a training copy of the database is a great way to train new staff and test out ideas before doing them in the live database. Restoring the live database to a training one is a two-step process:

Back up the current database.

Restore to a training database.

 

Back up the current database

Log on to the Jim2 Server Console. It is usually found in the Jim2 or Jim2 Server directory on the Jim2 Server machine, or from the Start menu under Happen.

start server console
restore training

To authenticate when logging on, use the user sa and password as set up when SQL Server was installed.

warning1

Happen Business does not store this sa username and password. These need to be stored safely by your company IT department.

After logging on, go to the Backup tab.

Choose the live database from the database drop down list – in this case, Demo_Training.

restore training1

Info

Note: if Add Date at end of the file name is not ticked, the backup will replace any backup within the folder that has the same name.

Choose where to save the file in the Backup To: field – it is recommended the Windows desktop in this case. Select the yellow folder icon and select Desktop.

restore training 2

Click Backup. When the backup is finished, the console will advise in the lower left-hand corner:

restore training3

 

Restore to a Training Database

Prior to restoring, stop Jes first via the Jim2 Configuration Manager.

 

Info

If restoring an accounts only backup, the database update program prior to launching the restored database.

 

stopjes

 

Go to the Restore tab.

In the Database field, name the training database – in this case Demo_Training.

restoretraining4

In the From field, find the backup just completed. Select the yellow folder, go to the desktop and choose the file just backed up.

restoretraining5

Tick Restore over existing database. Most likely, there will already be a training database, and this will restore this new database in its place.

When ready, click Restore. A confirmation message will appear. Ensure everything is correct, and click Yes.

restoretraining6

When the restore is complete, the console will advise in the lower left-hand corner:

restoretraining7

Exit the Jim2 Server Console.

Restart Jes.

startJes

 

The live database has now been copied to the training database. Log on to Jim2 and pick the Training database. The username and password are the same as the live database.

 

restore training8

 

Restore Accounts Database Only

1.Create a copy of the full backup file by navigating to the backup folder, highlighting the file, right click and select copy, then right click and paste.

2.Open the backup file and delete the #Doc database.

delete doc db

3.Restore to training as normal (see above). The existing documents database will still be there.

4.If this is a new restore, run the Jim2 DBUpdate, tick this new database only and update.

 

Further information

Backup and Restore Database

Best Backup Practices

Create a Training Database

Restore

Scheduled Backup