PHP Class HM\BackUpWordPress\Zip_File_Backup_Engine

Inheritance: extends File_Backup_Engine
Datei anzeigen Open project: humanmade/backupwordpress

Public Methods

Method Description
__construct ( )
backup ( ) : boolean Perform the file backup.
get_exclude_string ( ) : string Convert the exclude rules to a format zip accepts
get_zip_executable_path ( ) : string | false Calculate the path to the zip executable.

Method Details

__construct() public method

public __construct ( )

backup() public method

Perform the file backup.
public backup ( ) : boolean
return boolean Whether the backup completed successfully or not.

get_exclude_string() public method

Convert the exclude rules to a format zip accepts
public get_exclude_string ( ) : string
return string The exclude string ready to pass to `zip -x`

get_zip_executable_path() public method

The executable path can be overridden using either the HMBKP_ZIP_PATH Constant or the hmbkp_zip_executable_path filter. If neither of those are set then we fallback to checking a number of common locations.
public get_zip_executable_path ( ) : string | false
return string | false The path to the executable or false.