BackupInventory
MMO\admin\monitoring · 1 symbol · generated 30 Nov 2026
BackupInventory
BackupInventory.php:17Each site's backups, on its server and on this machine, as the last run backups read them (admin.php's, BackupFiles::Inventory), one file per site in the hub's data (project/backups/{target}.json), for the pages to show without reaching any server.
- Namespace
MMO\admin\monitoring
Index
| CLEANUP | the cleanup of a hub that never set one: off; once on, every week, the newest 7 sets kept in both places | |
| READ | a site read | |
| UNCHECKED | a site never read | |
| UNKNOWN | a site that could not be read | |
| hub | ||
| all() | ||
| cleanup() | ||
| counts() | ||
| debugName() | ||
| fileName($target) | ||
| get($target) | ||
| getFolder() | ||
| save($target, $read, $at) | Keep what was read of a site. | |
| __construct($hub) |
Constants4
CLEANUP
the cleanup of a hub that never set one: off; once on, every week, the newest 7 sets kept in both places
READ
a site read
UNCHECKED
a site never read
UNKNOWN
a site that could not be read
Properties1
hub
- Type
- Hub
Methods9
all()
BackupInventory.php:60cleanup()
BackupInventory.php:98counts()
BackupInventory.php:72| returns | array | int, read: int, unknown: int, unchecked: int, server: array{sets: int, size: int}, local: array{sets: int, size: int}, incomplete: int, newest: ?int, oldest: ?int, checkedAt: ?int} the sites' backups added up: incomplete the sites read without a complete set on their server, newest the most recent set of all, oldest the oldest of the sites' newest complete sets on their servers (the site longest without one), checkedAt the oldest reading (null: one never was) |
debugName()
BackupInventory.php:30| returns | string |
fileName($target)
BackupInventory.php:101get($target)
BackupInventory.php:50getFolder()
BackupInventory.php:33| returns | string | the folder of the sites' readings |
save($target, $read, $at)
BackupInventory.php:39Keep what was read of a site.
__construct($hub)
BackupInventory.php:28| $hub | Hub |