ConstReadonlyGET_SCHEDULE_CONFIG: "backup:get-schedule-config"Retrieves current backup schedule configuration.
ReadonlySET_SCHEDULE_CONFIG: "backup:set-schedule-config"Updates backup schedule configuration and restarts the scheduler.
ReadonlyGET_BACKUP_LOCATION: "backup:get-backup-location"Retrieves the currently configured backup location path.
ReadonlySET_BACKUP_LOCATION: "backup:set-backup-location"Sets a new backup location directory with validation.
ReadonlyOPEN_BACKUP_LOCATION: "backup:open-backup-location"Opens the backup location in the system file browser.
ReadonlyLIST_LOCAL_BACKUPS: "backup:list-local-backups"Lists all backup files in the configured backup location.
ReadonlyREAD_LOCAL_BACKUP: "backup:read-local-backup"Reads a backup file's contents by filename.
ReadonlyRESTORE_LOCAL_BACKUP: "backup:restore-local-backup"Restores application data from a backup file with optional merge mode.
ReadonlyDELETE_BACKUP: "backup:delete-backup"Deletes a specific backup file by filename.
ReadonlyTRIGGER_BACKUP: "backup:trigger-backup"Manually triggers a backup outside the normal schedule.
ReadonlyCREATE_NOW: "backup:create-now"Creates an immediate backup (alias for TRIGGER_BACKUP).
ReadonlyGET_BACKUP_STATUS: "backup:get-backup-status"Retrieves current backup scheduler status (running state and next backup time).
ReadonlyGET_BACKUP_HISTORY: "backup:get-backup-history"Retrieves backup history entries.
ReadonlyCLEAR_HISTORY: "backup:clear-history"Clears all backup history from the main process store.
ReadonlyON_BACKUP_COMPLETE: "backup:on-backup-complete"Event fired when backup creation completes successfully.
ReadonlyON_BACKUP_ERROR: "backup:on-backup-error"Event fired when a backup operation encounters an error.
ReadonlyON_HISTORY_UPDATED: "backup:on-history-updated"Event fired when backup history is updated (deletion, rotation, or clear).
ReadonlyON_STATUS_CHANGED: "backup:on-status-changed"Event fired when backup scheduler status changes.
export const BACKUP_CHANNELS = {
/** Retrieves current backup schedule configuration. @source */
GET_SCHEDULE_CONFIG: "backup:get-schedule-config",
/** Updates backup schedule configuration and restarts the scheduler. @source */
SET_SCHEDULE_CONFIG: "backup:set-schedule-config",
/** Retrieves the currently configured backup location path. @source */
GET_BACKUP_LOCATION: "backup:get-backup-location",
/** Sets a new backup location directory with validation. @source */
SET_BACKUP_LOCATION: "backup:set-backup-location",
/** Opens the backup location in the system file browser. @source */
OPEN_BACKUP_LOCATION: "backup:open-backup-location",
/** Lists all backup files in the configured backup location. @source */
LIST_LOCAL_BACKUPS: "backup:list-local-backups",
/** Reads a backup file's contents by filename. @source */
READ_LOCAL_BACKUP: "backup:read-local-backup",
/** Restores application data from a backup file with optional merge mode. @source */
RESTORE_LOCAL_BACKUP: "backup:restore-local-backup",
/** Deletes a specific backup file by filename. @source */
DELETE_BACKUP: "backup:delete-backup",
/** Manually triggers a backup outside the normal schedule. @source */
TRIGGER_BACKUP: "backup:trigger-backup",
/** Creates an immediate backup (alias for TRIGGER_BACKUP). @source */
CREATE_NOW: "backup:create-now",
/** Retrieves current backup scheduler status (running state and next backup time). @source */
GET_BACKUP_STATUS: "backup:get-backup-status",
/** Retrieves backup history entries. @source */
GET_BACKUP_HISTORY: "backup:get-backup-history",
/** Clears all backup history from the main process store. @source */
CLEAR_HISTORY: "backup:clear-history",
/** Event fired when backup creation completes successfully. @source */
ON_BACKUP_COMPLETE: "backup:on-backup-complete",
/** Event fired when a backup operation encounters an error. @source */
ON_BACKUP_ERROR: "backup:on-backup-error",
/** Event fired when backup history is updated (deletion, rotation, or clear). @source */
ON_HISTORY_UPDATED: "backup:on-history-updated",
/** Event fired when backup scheduler status changes. @source */
ON_STATUS_CHANGED: "backup:on-status-changed",
} as const;
Backup IPC channel names for communication between renderer and main processes.