Table of Contents

Enum RestoreMode

Namespace
RocksDbNet
Assembly
RocksDb.Net.dll

How thoroughly a restore replaces the files already in the destination.

public enum RestoreMode

Fields

KeepLatestDbSessionIdFiles = 1

Keep destination files that the latest database session id says are already correct. The most efficient mode, and the right one for restoring a healthy database.

PurgeAllFiles = 65535

Delete everything in the destination and restore every file. Least efficient and most thorough. This is the default.

VerifyChecksum = 2

Checksum each destination file against the backup metadata and replace only the ones that do not match. Use this when the database is suspected to be damaged.

Remarks

Mirrored from RestoreOptions::Mode in include/rocksdb/utilities/backup_engine.h. The values are not contiguous, and PurgeAllFiles is the RocksDb default.