Skip to main content

Interface: DatabaseBackupResult

Defined in: electron/services/database/utils/databaseBackup.ts:28

Result interface for database backup operations.

Remarks

Provides a structured return type for backup operations with comprehensive metadata for tracking and validation. Used as the return value for createDatabaseBackup.

Properties

buffer

buffer: Buffer

Defined in: electron/services/database/utils/databaseBackup.ts:35

Binary buffer containing the complete SQLite database.

Remarks

The raw contents of the SQLite database file as a Node.js Buffer.


fileName

fileName: string

Defined in: electron/services/database/utils/databaseBackup.ts:43

Standardized filename for the backup file.

Remarks

The filename used for the backup file, typically "uptime-watcher-backup.sqlite".


metadata

metadata: { createdAt: number; originalPath: string; sizeBytes: number; }

Defined in: electron/services/database/utils/databaseBackup.ts:51

Metadata about the backup operation.

createdAt

createdAt: number

Backup creation timestamp.

Remarks

The Unix timestamp (in milliseconds) when the backup was created.

originalPath

originalPath: string

Original database file path.

Remarks

The absolute path to the original SQLite database file that was backed up.

sizeBytes

sizeBytes: number

Database file size in bytes.

Remarks

The size of the database file in bytes at the time of backup.

Remarks

Contains details about the backup creation, including timestamp, original path, and file size.