Data backup and recovery
Last updated
Last updated
The TSLab program provides you with the ability to create and restore data backups.
In the data backup copy, you can save the database of scripts, as well as data related to data providers - caches of orders, deals, historical data. The backup copy can be used in case of a computer failure or when transferring the TSLab program to another computer.
It is recommended that you back up your data periodically. Highly recommended for any program updates.
The "Create backup" window can be opened from Main Menu -> Tools -> Create backup.
Note! Before starting the backup process, you must stop all agents and disable data providers. The program will be restarted while the backup is being created.
Provider passwords
Stores data provider passwords. For classic markets - password from the data provider account For cryptocurrency markets - secret API Key
Program files
Saves service files and DLLs of the program. You can use this item if you have a working version of the nightly build of the program installed and want to install a newer, untested version. In this case, when restoring from a backup, you can return to the previous (saved) nightly version.
My trades and orders cache
Saves the available data on your transactions and orders.
Offline data cache
Saves accumulated historical data on financial instruments in interval formats (seconds, minutes, hours).
All trades data cache
Saves accumulated historical data on financial instruments in ticks (saved Trades by instrument)
Global cache
Saves data calculated by agents. Scripts.
Additional indicators
Saves user indicators (Handlers folder).
Primitives
Saves graphic primitives that you have created.
Workspaces
Saves the program configurations you have created.
Workspaces path
Path to the folder with your program configurations.
Backup path
Path to the folder where the backup will be saved.
Password (optional field)
Ability to set a password for the backup. If a password is set, data recovery is not possible without it.
After you have selected the necessary data backup items, click the Next button.
If you have selected Data Provider Cache Items, you will be presented with a choice of providers for which caches will be stored. Select the information you need and click Next.
In the next step, you will be prompted to select a directory to which the backup will be made. You can also set a password for the file containing your data.
To complete the backup operation, click the Start button. After starting the backup process, the TSLab program will be restarted.
The "Restore backup" window can be opened from Main Menu -> Tools -> Restore backup.
Pay attention! Before starting the data recovery process, you must stop all agents and disable data providers. During data recovery, the program will be restarted.
Specify the path to the saved copy of the data and the password (if you have set a password for the backup). Click the Next button to continue.
In the next step, you can select the items to be restored from the backup file. Learn more about the available Options. Click the Next button to continue.
If you have selected data provider cache restore options, you will be prompted to select the providers that will be restored. Select the information you need and click Next.
To start the recovery process, click the Start button. After starting the recovery process, the TSLab program will be restarted.
Selecting all options will create a data backup file (a complete snapshot of the program) that can be used on a second computer.
To transfer data between computers, it is recommended to have the same version of the program on both computers. If previous versions of the program were installed on the donor computer, then it is recommended to transfer user folders and folders related to data providers manually. Depending on past versions, the vendor folders and user folders may have different locations.
C:\Users\TSLab\AppData\Local\TSLab\TSLab2.2
In this path, the working folder on the donor computer can be: C:\Users\TSLab\AppData\Local\TSLab\TSLab2.0
And the working folder on the receiving computer: C:\Users\USER\AppData\Local\TSLab\TSLab2.2 In this case, the data must be transferred manually.
C:\ProgramData\TSLab\TSLab 2.2\Providers
In some versions of the program, this folder may be located in the root directory of the program. C:\Program Files\TSLab\TSLab 2.2
After deploying the file on the second computer, if necessary, in the settings of the data provider, you need to change the path to the broker applications (if any are used, for example, the folder for logging). We are talking about a discrepancy between the names of disks, usernames windows, they may differ on computers.