KMP PHP API Reference

BackupCheckCommand extends Command
in package

Scheduled backup check — runs from cron, creates a backup if the schedule is due.

Checks Backup.schedule AppSetting (daily/weekly/disabled) and creates a backup if no successful backup exists within the schedule window. Also enforces retention.

Table of Contents

Methods

defaultName()  : string
Get the default command name.
execute()  : int|null
Execute the command.
buildOptionParser()  : ConsoleOptionParser
Configure the command option parser.

Methods

defaultName()

Get the default command name.

public static defaultName() : string
Return values
string

execute()

Execute the command.

public execute(Arguments $args, ConsoleIo $io) : int|null
Parameters
$args : Arguments
$io : ConsoleIo
Return values
int|null

buildOptionParser()

Configure the command option parser.

protected buildOptionParser(ConsoleOptionParser $parser) : ConsoleOptionParser
Parameters
$parser : ConsoleOptionParser
Return values
ConsoleOptionParser

        
On this page

Search results