postBackup()
postBackup(\pm_Client $client)
Define the logic after backing up a client
Parameters
\pm_Client | $client | The client that is backuped |
Hook for backing up and restoring clients
postBackup(\pm_Client $client)
Define the logic after backing up a client
\pm_Client | $client | The client that is backuped |
backup(\pm_Client $client) : array
Define the content to be stored
[
string, // Serialized config related to this client
array, // Array of relative paths inside extension's 'var' directory that will be include in backup
array, // Array of relative paths inside extension's 'var' directory that will be exclude from backup
]
\pm_Client | $client | The client that is backuped |
restore(\pm_Client $client, string $pleskVersion, string $extVersion, string $config, string $contentDir)
Define the logic on restoring a client
\pm_Client | $client | The client that is restored |
string | $pleskVersion | Version of Plesk when backup was created |
string | $extVersion | Version of extension when backup was created |
string | $config | Stored config related to restoring client |
string | $contentDir | Directory with content related to restoring client |