\BackupActionController
Synopsis
class BackupActionController
extends Controller
{
- // members
- private static string $host = 'localhost';
- private static array $allowed_actions = ;
- private static array $url_handlers = ;
- // methods
- public string createBackup()
- public int getBackup()
- public string restoreBackup()
- public bool|string authenticateGDrive()
- public string getStatusUpdate()
- private string errorMsg()
Hierarchy
Extends
- Controller
Members
private
- $allowed_actions
- $host
- $url_handlers
Methods
private
- errorMsg() — Returns a error message, which will be shown in the interface
public
- authenticateGDrive() — Endpoint to authenticate the backend to client's Google account
- createBackup() — Gets a dump of the database and archives it together with the assets by using the ssPak tool.
- getBackup() — Provides a file download for a backup file
- getStatusUpdate() — Get the current status of a running backup or restore task
- restoreBackup() — Restores a backup by using ssPak.