Platform SDK: Removable Storage Manager

Backing Up the RSM Database

The default location of the RSM database is %SYSTEMROOT%\System32\NTMSData. The actual location of the database can be changed to any location. The current location of the database is found in the registry under

HKLM\System\CurrentControlSet\Control\NTMS

as the value "NtmsData". The database files are always stored in a folder named "NtmsData" under the folder given in this value. If RSM is not running, it is a sufficient backup strategy is to make copies of these files. Most backup applications, though, require RSM to be running while the backup occurs.

To back up the RSM database while RSM is running, an application must open an RSM session and use the ExportNtmsDatabase function. This function creates a consistent replica of the current database. RSM creates the replica in the Export subdirectory of the RSM database directory.