Futilities/server/backups/db-bak: Difference between revisions

From Woozle Writes Code
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{fmt/title|Database Backup Futility}}
{{fmt/title|Database Backup Futility}}
 
==Classes==
==Proposed Object API==
All are in namespace <code>woozalia\backup</code> unless otherwise noted.
===Manager===
{| class="sortable wikitable"
'''Thinking''': A "Session" is basically just a set of parameters that will work to start the backup. The PoingyX API exists to assist with ensuring that all the needed parameters are present and valid.
|-
* <syntaxhighlight lang=php inline>function SessionFromSpec(string $uri, string $sPassword, string $fpDest) : Session;</syntaxhighlight>
! name || parent || type || file || description
===Session===
|-
* function Start() : bool;
| cFolderRotater || || utility || blib.php
* function CheckStatus() : Status;
|-
 
| cSource || || config || conf.php
The calling process calls Start() to initiate the backup, then repeatedly calls CheckStatus() to see how it's going. This can be reported to an interactive user or just checked for the completion flag.
|-
===Status===
| cFileSource || caSource || config || conf.php
* function UnitsDone() : int;
|-
* function UnitsTotal() : int; // can be zero if unknown
| caDataSource || caSource || config || conf.php
* function IsDone() : bool;
|-
* function IsOkay() : bool;
| caServer || || config || conf.php
* function Message() : string;
|-
| caDatabase || || db || db.php
|-
| cPostgresDB || caDatabase || db || db.php
|-
| cMySQLDB || caDatabase || db || db.php
|-
| cOpts || WF\caOptsBase || UI || opts.php
|}
==Archive==
* [[/back burner]]

Latest revision as of 15:43, 27 January 2023

Database Backup Futility

Classes

All are in namespace woozalia\backup unless otherwise noted.

name parent type file description
cFolderRotater utility blib.php
cSource config conf.php
cFileSource caSource config conf.php
caDataSource caSource config conf.php
caServer config conf.php
caDatabase db db.php
cPostgresDB caDatabase db db.php
cMySQLDB caDatabase db db.php
cOpts WF\caOptsBase UI opts.php

Archive