\pm_Hook_Backup_Server

Hook for backing up and restoring the server configuration

Summary

Methods
Properties
Constants
postBackup()
backup()
restore()
getExcludedSettings()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A

Methods

postBackup()

postBackup() 

Define the logic after backup server configuration

backup()

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
]

Returns

array

restore()

restore(string  $pleskVersion, string  $extVersion, string  $config, string  $contentDir) 

Define the logic on restoring the server configuration

Parameters

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

getExcludedSettings()

getExcludedSettings() : array<mixed,string>

Define the list of module settings that will not be stored in the backup

Returns

array<mixed,string>