
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.
CurrentManifestFormatVersion
Gets the current backup manifest format version.
ManifestFileName
Gets the manifest file name used in backup directories.
Backup(string, string, IndexBackupOptions?)
Creates a backup by copying all manifest files into a backup directory.
Backup(string, string, IndexBackupOptions?, CancellationToken)
Creates a validated backup and observes cancellation before publication.
Backup(string, string, CancellationToken)
Creates a validated backup and observes cancellation before publication.
CreateManifest(string, IndexBackupOptions?)
Creates a backup manifest for a selected commit without copying files.
ReadManifest(string)
Reads a backup manifest from a backup directory.
Restore(IReadOnlyList<string>, string, IndexRestoreOptions?)
Restores an ordered backup chain into a target index directory.
Restore(IReadOnlyList<string>, string, IndexRestoreOptions?, CancellationToken)
Restores a full incremental chain and observes cancellation before publication.
Restore(IReadOnlyList<string>, string, CancellationToken)
Restores a full incremental chain and observes cancellation before publication.
Restore(string, string, IndexRestoreOptions?)
Restores a validated backup into a target index directory.
Restore(string, string, IndexRestoreOptions?, CancellationToken)
Restores a validated backup and observes cancellation before publication.
Restore(string, string, CancellationToken)
Restores a validated backup and observes cancellation before publication.
ValidateBackup(IReadOnlyList<string>)
Validates an ordered backup chain from oldest to newest.
ValidateBackup(string)
Validates that every file listed in a backup manifest is present and has the recorded length and checksum.