Skip to content

API reference

phil/backup

Every type under Phil\Backup\. "Implemented" means implemented and covered by unit tests.

TypeRoleState
Backupsclient(), directory(), create(), prune(), keepLatest(), find(), restore(), verify()Implemented
Restoration$mediaFiles, $removedFilesImplemented
Verification$restoredInto (?DatabaseIdentity), $mediaFiles (?int)Implemented
Database\DatabaseIdentity$platform, $host, $name; describe(), isFile(), typedName()Implemented
Database\DatabaseClientidentity(), extension(), backup(), restore(), withDatabase(), check()Port; three clients
Database\CommandRunnerfind($candidates), run($command, $environment, $input)Port
Database\SqliteClient, MysqlClient, PostgresqlClientThe client of each platformImplemented
Encryption\BackupKeyfromBase64(), generate(), toBase64(), $bytesImplemented
Encryption\BackupCipherencrypt($source, $target), decrypt($source, $target); EXTENSIONImplemented
Media\MediaArchiveisEmpty(), write(), verify(), extract(), prune()Implemented
Media\TarWritercreate(), addDirectory(), addFile(), close()Implemented
Media\TarReaderread($visitor)Implemented
Media\TarEntry$name, $directory, $mode, $size, $modifiedImplemented
Storage\BackupDirectorypath(), newStem(), file(), temporary(), sets(), labelled(), latest(), set(), remove(); MEDIA, COPIESImplemented
Storage\BackupSet$stem, $time, $label, $database, $media, $copy; isLabelled(), files(), isEncrypted($file), compare()Implemented
Rotation\RotationPolicy$last, $daily, $weekly, $monthly; expired($sets)Implemented
Restore\RestoreGuardcheckEnvironment(), check(); VARIABLEImplemented
Exception\BackupErrorInterface of every exception of the libraryImplemented
Exception\BackupFailedRuntimeException; missing(), failed(), because()Implemented
Exception\InvalidBackupValueInvalidArgumentException; because()Implemented
Exception\RestoreRefusedRuntimeException; inProduction(), unconfirmed(), untyped(), mistyped()Implemented