MMOframework
Pourquoi l'IA Playground Bibliothèques Développeurs Agence
FR EN
Créer un projet en direct
Index

SiteBackupTask

MMO\admin\tasks · 1 symbole · générée le 30 Nov 2026

class

SiteBackupTask

SiteBackupTask.php:18

What a backup set holds besides the databases (BackupSets): the site's shared files -- its shared paths but its configuration: data, uploads, keys, metrics, section types -- and its configuration (shared/configs, its secrets), each a .tar.gz of the target's backups/, named after the set's time, readable by its owner only.

class MMO\admin\tasks\SiteBackupTask extends MMO\admin\classes\aDeployTask
Espace de noms
MMO\admin\tasks
Étend
aDeployTask
They leave the server as the dumps do ([`BackupTask`](https://mmoframework.fr/documentation/mmo.admin/php/tasks/BackupTask.md#backuptask)): encrypted with age for the target's `backup.encrypt`, then copied off site (`backup.offsite`), and downloaded with `--fetch`. The configuration never leaves the server in clear: without `backup.encrypt` it stays there, and is said so.

Propriétés4

at

protected int $at
Type
int

fetch

protected bool $fetch
Type
bool

localFolder

protected ?string $localFolder
Type
null | string

parts

protected array $parts
Type
array

Méthodes5

FilePaths($target)

staticSiteBackupTask.php:35
static function FilePaths(MMO\admin\entities\Target $target): array
$targetTarget
retournearraythe shared paths of a set's files: the site's shared paths but its configuration

__construct($at, $parts, $fetch, $localFolder)

SiteBackupTask.php:25
function __construct( int $at, array $parts = ['files', 'config'], bool $fetch = false, ?string $localFolder = null )
$atintthe set's time: every part of the set is named after it
$parts = ['files', 'config']arrayfiles, config (BackupSets::PARTS: databases is BackupTask's)
$fetch = falsebooldownload what leaves the server into $localFolder
$localFolder = nullnull | stringwhere a fetched part goes here
Membres hérités (40)
ConstantesDéclaré parDescription
ALERTiLogLevelAlert: Action must be taken immediately.
ALLiLogLevelMask for all
ALL_PLUSiLogLeveldebug everything
BACKTRACEiLogLevel
CRITICALiLogLevelCritical: Critical conditions.
DEBUGiLogLevelDebug: Detailed debug information.
DEEPiLogLeveldebug everything with arguments
EMERGENCYiLogLevelEmergency: System is unusable.
ERRORiLogLevelError: Runtime errors that do not require immediate action but should typically be logged and monitored.
ERROR_PLUSiLogLevelMask for all error
FATALiLogLevelMask for all fatal error
INFOiLogLevelInfo: Interesting events.
INFO_PLUSiLogLevelMask for all errors/warning/notices/info
MEMORYiLogLevelinclude backtrace object
NOTICEiLogLevelNotice: Normal but significant events.
NOTICE_PLUSiLogLevelMask for all errors/warning/notices/info
TRACEiLogLevelinclude backtrace as origins
WARNINGiLogLevelWarning: Exceptional occurrences that are not errors.
WARNING_PLUSiLogLevelMask for all errors and warnings
PropriétésDéclaré parDescription
verbosityaDeployTask
MéthodesDéclaré parDescription
alert($message, $context)aDeployTaskAction must be taken immediately.
backtraces($message, $context)aDeployTaskForce-log a message at INFO level together with a full stack trace/memory snapshot (iLogLevel::BACKTRACE), bypassing the verbosity mask entirely (any non-zero verbosity is enough to trigger it).
critical($message, $context)aDeployTaskCritical conditions. No-op if CRITICAL is currently filtered out by the verbosity mask.
debug($message, $context)aDeployTaskDetailed debug information.
debugName()aDeployTask
emergency($message, $context)aDeployTaskSystem is unusable. No-op if EMERGENCY is currently filtered out by the verbosity mask.
error($message, $context)aDeployTaskRuntime errors that do not require immediate action but should typically be logged and monitored.
getName()aDeployTask
getVerbosity()aDeployTask
info($message, $context)aDeployTaskInteresting events. No-op if INFO is currently filtered out by the verbosity mask.
isChange()aDeployTaskWhether running this task CHANGES anything.
isNeeded($context)aDeployTaskWhether this task has anything to do for this target -- e.g.
isRollbackCritical()aDeployTask
log($level, $message, $context)aDeployTaskLogs with an arbitrary level.
notice($message, $context)aDeployTaskNormal but significant events.
rollback($context)aDeployTaskUndo this task. Called by the runner, in reverse order, for every task already applied when a later one failed.
setVerbosity($verb)aDeployTaskSet the current verbosity mask, replacing whatever it was before.
testVerbosity($level)aDeployTaskTest whether a given level (or set of levels) is currently enabled by this instance's verbosity mask.
verify($context)aDeployTaskCheck, by looking at the target, that the task really took effect.
warning($message, $context)aDeployTaskExceptional occurrences that are not errors.