Table of Contents

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

BackupId uint

The backup's identifier, used to restore or verify this particular backup.

Timestamp long

When the backup was created, in seconds since the Unix epoch in UTC. Seconds, not milliseconds or ticks, so convert with FromUnixTimeSeconds(long).

Size ulong

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.

NumberFiles uint

How 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

uint

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

uint

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

ulong

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; }

Property Value

long