\pm_Hook_Backup_Client

Hook for backing up and restoring clients

Summary

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

Methods

postBackup()

postBackup(\pm_Client  $client) 

Define the logic after backing up a client

Parameters

\pm_Client $client

The client that is backuped

backup()

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
]

Parameters

\pm_Client $client

The client that is backuped

Returns

array

restore()

restore(\pm_Client  $client, string  $pleskVersion, string  $extVersion, string  $config, string  $contentDir) 

Define the logic on restoring a client

Parameters

\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