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
stringexecute()
Execute the command.
public
execute(Arguments $args, ConsoleIo $io) : int|null
Parameters
- $args : Arguments
- $io : ConsoleIo
Return values
int|nullbuildOptionParser()
Configure the command option parser.
protected
buildOptionParser(ConsoleOptionParser $parser) : ConsoleOptionParser
Parameters
- $parser : ConsoleOptionParser