Class BackupRestoreResult
What a restore did.
public sealed record BackupRestoreResult : IEquatable<BackupRestoreResult>
- Inheritance
-
BackupRestoreResult
- Implements
- Inherited Members
Constructors
BackupRestoreResult(BackupPointSummary, string, string, int, int, int, int, long, long, TimeSpan, IReadOnlyList<uint>, IReadOnlyList<PackPageDamage>, Guid, string)
What a restore did.
public BackupRestoreResult(BackupPointSummary Point, string Target, string DisplacedBundle, int ChainDepth, int PagesWritten, int ZeroPages, int TailSegments, long BytesRead, long BytesWritten, TimeSpan Duration, IReadOnlyList<uint> SuspectPages, IReadOnlyList<PackPageDamage> DamagedPages, Guid NewTimelineId, string SettleError)
Parameters
PointBackupPointSummaryThe point restored.
TargetstringThe restored bundle.
DisplacedBundlestringWhere the replaced bundle now is, or
null.ChainDepthintThe packs read.
PagesWrittenintThe image's pages.
ZeroPagesintPages written as zeros (never-written pages and all-zero ones).
TailSegmentsintWAL segments recreated.
BytesReadlongBytes read from the store.
BytesWrittenlongBytes written to the target.
DurationTimeSpanWall time, settle excluded.
SuspectPagesIReadOnlyList<uint>Pages the LIVE database had damaged at capture: a warning, not a defect of the backup.
DamagedPagesIReadOnlyList<PackPageDamage>Pages written despite failing their check (only with AllowDamaged).
NewTimelineIdGuidThe WAL timeline the restored database starts at its first open.
SettleErrorstringWhat OpenAndClose threw, or
null. The restore is published either way: the target and the displaced bundle are where this result says.
Properties
BytesRead
Bytes read from the store.
public long BytesRead { get; init; }
Property Value
BytesWritten
Bytes written to the target.
public long BytesWritten { get; init; }
Property Value
ChainDepth
The packs read.
public int ChainDepth { get; init; }
Property Value
DamagedPages
Pages written despite failing their check (only with AllowDamaged).
public IReadOnlyList<PackPageDamage> DamagedPages { get; init; }
Property Value
DisplacedBundle
Where the replaced bundle now is, or null.
public string DisplacedBundle { get; init; }
Property Value
Duration
Wall time, settle excluded.
public TimeSpan Duration { get; init; }
Property Value
NewTimelineId
The WAL timeline the restored database starts at its first open.
public Guid NewTimelineId { get; init; }
Property Value
PagesWritten
The image's pages.
public int PagesWritten { get; init; }
Property Value
Point
The point restored.
public BackupPointSummary Point { get; init; }
Property Value
SettleError
What OpenAndClose threw, or null. The restore is published either way: the target and the displaced
bundle are where this result says.
public string SettleError { get; init; }
Property Value
SuspectPages
Pages the LIVE database had damaged at capture: a warning, not a defect of the backup.
public IReadOnlyList<uint> SuspectPages { get; init; }
Property Value
TailSegments
WAL segments recreated.
public int TailSegments { get; init; }
Property Value
Target
The restored bundle.
public string Target { get; init; }
Property Value
ZeroPages
Pages written as zeros (never-written pages and all-zero ones).
public int ZeroPages { get; init; }
Property Value
Methods
Deconstruct(out BackupPointSummary, out string, out string, out int, out int, out int, out int, out long, out long, out TimeSpan, out IReadOnlyList<uint>, out IReadOnlyList<PackPageDamage>, out Guid, out string)
public void Deconstruct(out BackupPointSummary Point, out string Target, out string DisplacedBundle, out int ChainDepth, out int PagesWritten, out int ZeroPages, out int TailSegments, out long BytesRead, out long BytesWritten, out TimeSpan Duration, out IReadOnlyList<uint> SuspectPages, out IReadOnlyList<PackPageDamage> DamagedPages, out Guid NewTimelineId, out string SettleError)
Parameters
PointBackupPointSummaryTargetstringDisplacedBundlestringChainDepthintPagesWrittenintZeroPagesintTailSegmentsintBytesReadlongBytesWrittenlongDurationTimeSpanSuspectPagesIReadOnlyList<uint>DamagedPagesIReadOnlyList<PackPageDamage>NewTimelineIdGuidSettleErrorstring
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(BackupRestoreResult?)
public bool Equals(BackupRestoreResult? other)
Parameters
otherBackupRestoreResult
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(BackupRestoreResult?, BackupRestoreResult?)
public static bool operator ==(BackupRestoreResult? left, BackupRestoreResult? right)
Parameters
leftBackupRestoreResultrightBackupRestoreResult
Returns
operator !=(BackupRestoreResult?, BackupRestoreResult?)
public static bool operator !=(BackupRestoreResult? left, BackupRestoreResult? right)
Parameters
leftBackupRestoreResultrightBackupRestoreResult