Migrating Long-Term Storage
- Updated2024-10-31
- 2 minute(s) read
Long-term storage may be saved as files on disk or in a MongoDB database. To switch storage types on a single BTS Server instance or to move storage from one BTS Server instance to another instance, do the following.
- Log into the BTS Server instance where your current files are stored.
-
Click Administrator in the Navigation pane.
Note You must be logged in as an Administrator to use this tool.
- On the Administrator page, click Export Storage. This exports all of the files in the current long-term storage on this BTS Server instance to a zip file.
- If the BTS Server instance from which you are migrating is not yet configured for the desired long-term storage type, set up the BTS Server environment to use the desired storage type and restart the BTS Server. Refer to Customize the Web UI with Environment Settings for more information.
- Log into the BTS Server instance where you will import these files.
- Click Administrator in the Navigation pane.
-
On the Administrator page, click Import
Storage. This will import the files in the selected zip file
into the current long-term storage on this BTS Server instance.
Note If the target storage has existing content, the new content will be added to the existing content, with any new items of the same name replacing the same name items in the target storage.Note If the either the export of the import fails, it can be caused by more content in long-term storage than the system is configured to export or import. Consider increasing the AdminPage:MaxStorageZipFileSizeInMegaBytes application setting. Refer to Customize the Web UI with Environment Settings for more information.
Related Information
- Customize the Web UI with Environment Settings
The following configuration tokens can be used to customize the BTS environment. In BTS Server (Windows), these can be set in the appsettings.json file, which is installed by default at %PROGRAMFILES%\National Instruments\Battery Test System\WebApplication\appsettings.json, or as Windows environment variables. When set as Windows environment variables, prefix the tokens with BTS_ and replace any colons (:) with double underscores (__). In BTS Server (Enterprise), these can be set in the helm chart bts-values.yaml file in the envVariables section. Preface the variable names with BTS_.