Skip to content

Tankōbon / main/db/backup-service / isBackupDue

Function: isBackupDue() ​

isBackupDue(lastBackupAt, intervalDays, now?): boolean

Defined in: main/db/backup-service.ts:95

Whether a scheduled copy is due: the interval is on (1 to 31 days) and the last copy (ISO date, empty when none) is at least that old. An unreadable date counts as none, a date in the future as just made.

Parameters ​

lastBackupAt ​

string

intervalDays ​

number

now? ​

Date = ...

Returns ​

boolean