Table of Contents

Public classStatic IndexBackup

Namespace
Rowles.LeanCorpus.Index.Backup
Assembly
Rowles.LeanCorpus.dll

Creates, validates, and restores LeanCorpus index backups.

public static class IndexBackup
IndexBackup

Public field CurrentManifestFormatVersion

Gets the current backup manifest format version.

Public field ManifestFileName

Gets the manifest file name used in backup directories.

Public method Backup(string, string, IndexBackupOptions?)

Creates a backup by copying all manifest files into a backup directory.

Public method CreateManifest(string, IndexBackupOptions?)

Creates a backup manifest for a selected commit without copying files.

Public method ReadManifest(string)

Reads a backup manifest from a backup directory.

Public method Restore(string, string, IndexRestoreOptions?)

Restores a validated backup into a target index directory.

Public method ValidateBackup(string)

Validates that every file listed in a backup manifest is present and has the recorded length and checksum.