Метод |
Описание |
|
Unzip ( [type] $file, [type] $path ) |
Decompress a folder |
|
Zip ( [type] $source, [type] $destination, $include_dir = true ) |
Compresses a folder |
|
__construct ( $listener ) |
|
|
authorizeRemote ( Input $input ) : Guzzle\Service\Client |
Authorize the user on the remote server |
|
backupDB ( string $current_time ) |
Create backup of the current database |
|
backupModules ( string $current_time ) |
Backup all the modules installed |
|
backupPublic ( string $current_time ) |
Backup the public folder |
|
backupTables ( string $host, string $user, string $password, string $database, string $file_name, string $tables = '*' ) |
Generate a sql file of the current database |
|
copyToRestore ( Input $input ) : string |
Copy the backup file received from the post data to the restore folder |
|
dropTables ( ) |
Drop all the tables in the database |
|
restore ( string $restore_file ) |
Restore the database and modules from the restore file |
|
restoreDB ( string $restore_dir ) |
Restore the database from the restore folder |
|
restoreModules ( string $restore_dir ) |
Restore all the modules |
|
restorePublic ( string $restore_dir ) |
Restore public folder |
|
saveBackupToDB ( $description = '' ) : Object |
Save the information of the created backup to database |
|
startBackup ( $backup_db = true, $backup_modules = true, $backup_public = true ) |
|
|
startLocalToRemoteSync ( $input ) |
|
|
startRemoteToLocalSync ( $input ) |
|
|
syncFromRemote ( $current_time, $restore_file, $input ) |
|
|
syncToRemote ( string $current_time, [type] $backup_file, $input ) |
Send the backup file to remote server for synchronization |
|