Microstream does not automatically restore from the backup if the storage got deleted. If the configured storage directory does not exist any more or it is empty Microstream will create a new storage at that locations.
Please not that Microstream currently does not recognize the case that a backup is existing, while the storage directory is empty. Therefore, you should check that in your application code before starting the Microstream instance to prevent the creation of a new storage that will also affect the backup.
The backup in the backup directory is identical to the original storage. So, you can just copy its content to the original storage’s location. This must include:
- The type-dictionary File (by default: PersistenceTypeDictionary.ptd)
- On directory for each configured channel (channel_0, channel_1, etc.)
The process the would be:
- Stop running Microstream instances
- Copy the content from the backup to the original location
- Start Microstream again