Introduction
This article describes the process of server backup and recovery.
Backup is very important, as it provides saving data in case of various failures and errors. In r_keeper 7, backups are configured separately for each server.
To save all the data necessary for recovery, it is recommended to configure backup for:
- reference server
- cash server.
Let's start with the reference server settings.
Reference Server
The reference server backups are by default stored in the \base\backups\databases folder.
The databases folder stores backups named by the date and time of creation.
Each of the folders contains three files:
- rk7.udb is the main database storing all the references. From this very folder, the data goes into SQL
- check.udb - the sales database. The data gets here after common shifts are closed
- rk7.bls - contains pictures of hall plans, if any are used.
All 3 files must be saved.
Please note that r_keeper 7 does not archive backups and cannot upload them to an FTP server. We recommend doing this using third-party tools in order to improve fault tolerance.
To set up the reference server backup:
- Open the manager station
- Go to Options > Parameters > Installation > Reference Server > Files Backup
- Configure the following parameters:
- Backup start time: in the Reference line of the Basic section, select the backup period from the drop-down list. This is the time at which the system is allowed to back up the data.
Periods are configured in the Order > Periods menu. - Maximum number of backups - in the Primary section, in the Number line, specify the maximum number of backups
- Backup start time: in the Reference line of the Basic section, select the backup period from the drop-down list. This is the time at which the system is allowed to back up the data.
Frequency of backups - in the Main section, in the Time line, specify a number. This setting means to back up every specified period of time.
Path for saving files - in the Main section, in the String line, specify the relative or absolute path to the folder where the copies of the databases will be saved
Save your changes.
Cash server
Each POS server has its own backup settings. This means that if you have 3 cash register servers, they can have 3 different backup settings.
Read more about the data storage structure in the article description of the system and data storage
If the backup path has not been changed, by default these backup files are stored in the \ midbase \ Backup folder
It contains files:
Work.udb - open shift file
sh.udb - the shift file before closing the general shift
ns.udb - file of a new shift, after closing and before payment of the first check, may contain unpaid orders from the previous shift.
To set up a POS server backup:
In the manager station and go to Tools> Stations and Devices
Choose your restaurant and allocate a checkout server. Go to the Properties tab.
In the Backup section, you will see the settings:
Number of copies
Backup path - relative or absolute
Number of shifts - the number of shifts to be backed up
Frequency - back up every specified interval in minutes
Number of checks - by default 100
Perform backup - check the box to activate.
R_keeper 7 recovery
To restore r_keeper 7 from a backup:
Install r_keeper 7 using the installer or through the archive
Without starting the servers, copy from the previous to the installed version of r_keeper 7:
Files rk7.udb, check.udb and rk7.bls to the reference server base directory
WORK.UDB file in the midbase folder of the cash server. If there is no such folder, then create it. If there is no WORK.UDB file in the \ midbase \ Backup folder, but there is a similar one, for example: work2.udb - copy the most recent file with this name and rename it WORK.UDB
The files common.ini, repsserv.ini, rk7man.ini, rk7srv.INI, RKEEPER.INI, ShelterConnect.ini, wincash.ini, winprint.ini in:
\ bin \ win - for r_keeper 7 installed using the archive
the corresponding folders for r_keeper 7 installed with the installer.
In the rk7srv.INI file in the [REFSERVER] section, change the setting USESQL = 0
[REFSERVER]
USESQL = 0
Start the reference server. It will automatically load your database
After the first start, re-license all the servers that had the license
If the database has been corrupted, then:
Reconfigure the connection to the new external database and export the files
In the rk7srv.INI file in the [REFSERVER] section, change the setting from USESQL = 1 to USESQL = 0
Start the cash register server.
Restore using r_keeper 7 backups completed. The system will continue to work with the previously saved databases.
To make sure that the system has been restored successfully, check:
The presence of all previously closed shifts - in the manager station go to the Service menu> Information about general shifts
Work of reports - build a cube report. More details
do not read in the article the concept of cubes and the creation of reports based on them
If the check is successful, the system is restored, r_keeper 7 will continue to work with the previously saved databases.
Useful articles
It will be useful to read the articles:
Transferring r_keeper 7 to another computer
Restoring the shift after the close of the day.