Section navigation

Public classStatic IndexBackup

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

Creates, validates, and restores LeanCorpus index backups.

public static class IndexBackup
Inheritance
IndexBackup

Remarks

Participating directories are canonicalised before they are compared. Backup and restore reject directories that are the same as, inside, or contain another participating directory. Reparse-point components are resolved when the platform exposes a safe target; unresolved components are rejected.

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 Backup(string, string, IndexBackupOptions?, CancellationToken)

Creates a validated backup and observes cancellation before publication.

Public method Backup(string, string, CancellationToken)

Creates a validated backup and observes cancellation before publication.

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(IReadOnlyList<string>, string, IndexRestoreOptions?)

Restores an ordered backup chain into a target index directory.

Public method Restore(IReadOnlyList<string>, string, IndexRestoreOptions?, CancellationToken)

Restores a full incremental chain and observes cancellation before publication.

Public method Restore(IReadOnlyList<string>, string, CancellationToken)

Restores a full incremental chain and observes cancellation before publication.

Public method Restore(string, string, IndexRestoreOptions?)

Restores a validated backup into a target index directory.

Public method Restore(string, string, IndexRestoreOptions?, CancellationToken)

Restores a validated backup and observes cancellation before publication.

Public method Restore(string, string, CancellationToken)

Restores a validated backup and observes cancellation before publication.

Public method ValidateBackup(IReadOnlyList<string>)

Validates an ordered backup chain from oldest to newest.

Public method ValidateBackup(string)

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