Restore incremental backup files up to (including) the selected file, and stop restoring there.
Specify the directory into which the database will be restored.
// Restore to the specified directory path
var dataPath = @"C:\Users\RavenDB\backups\2018-12-26-16-17.ravendb-Products-A-backup\restoredDatabaseLocation";
restoreConfiguration.DataDirectory = dataPath;
This is where you need to provide your encryption key if your backup is encrypted.
restoreConfiguration.EncryptionKey = "your_encryption_key";
set DisableOngoingTasks to true to disable the execution of ongoing tasks after restoration.
See Recommended Precautions.
// Do or do not run ongoing tasks after restoration.
// Default setting is FALSE, to allow tasks' execution when the backup is restored.
restoreConfiguration.DisableOngoingTasks = true;