postBackup()
postBackup()
Define the logic after backup server configuration
Hook for backing up and restoring the server configuration
backup() : array
Define the content to be stored
[
string, // Serialized server configuration
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
]
restore(string $pleskVersion, string $extVersion, string $config, string $contentDir)
Define the logic on restoring the server configuration
string | $pleskVersion | Version of Plesk when backup was created |
string | $extVersion | Version of extension when backup was created |
string | $config | Stored serialized configuration |
string | $contentDir | Directory with stored content |