Class BackupInfo
- Namespace
- RocksDbNet
- Assembly
- RocksDb.Net.dll
Metadata for a single backup entry.
public sealed record BackupInfo : IEquatable<BackupInfo>
- Inheritance
-
BackupInfo
- Implements
- Inherited Members
Constructors
BackupInfo(uint, long, ulong, uint)
Metadata for a single backup entry.
public BackupInfo(uint BackupId, long Timestamp, ulong Size, uint NumberFiles)
Parameters
BackupIduintThe backup's identifier, used to restore or verify this particular backup.
TimestamplongWhen the backup was created, in seconds since the Unix epoch in UTC. Seconds, not milliseconds or ticks, so convert with FromUnixTimeSeconds(long).
SizeulongTotal size of the backup in bytes, counting file payloads only. Filesystem overhead and the backup's own metadata file are excluded, so this reads lower than the space the backup directory actually occupies.
NumberFilesuintHow many files the backup comprises, excluding its metadata file. Backups share unchanged files, so summing this across backups overcounts the files on disk.
Properties
AppMetadata
Application-supplied metadata attached when the backup was created, or an empty array when none was. Raw bytes, since the content is opaque to RocksDb and need not be text.
public byte[] AppMetadata { get; init; }
Property Value
- byte[]
BackupId
The backup's identifier, used to restore or verify this particular backup.
public uint BackupId { get; init; }
Property Value
NumberFiles
How many files the backup comprises, excluding its metadata file. Backups share unchanged files, so summing this across backups overcounts the files on disk.
public uint NumberFiles { get; init; }
Property Value
Size
Total size of the backup in bytes, counting file payloads only. Filesystem overhead and the backup's own metadata file are excluded, so this reads lower than the space the backup directory actually occupies.
public ulong Size { get; init; }
Property Value
Timestamp
When the backup was created, in seconds since the Unix epoch in UTC. Seconds, not milliseconds or ticks, so convert with FromUnixTimeSeconds(long).
public long Timestamp { get; init; }