$excludeZip
$excludeZip : boolean
Whether to exclude zip archives.
Class MainWP_Backup
Handle all Child Site backup functions.
create_full_backup(array $excludes, string $filePrefix = '', boolean $addConfig = false, boolean $includeCoreFiles = false, integer $file_descriptors, boolean $fileSuffix = false, boolean $excludezip = false, boolean $excludenonwp = false, boolean $loadFilesBeforeZip = true, string $ext = 'zip', boolean $pid = false, boolean $append = false) : array|boolean
Create full backup.
| array | $excludes | Files to exclude from the backup. |
| string | $filePrefix | Backup archive file prefix. |
| boolean | $addConfig | Add config file to backup. |
| boolean | $includeCoreFiles | Include WordPress core files. |
| integer | $file_descriptors | Number of backup archive file descriptors. |
| boolean | $fileSuffix | Backup archive file suffix. |
| boolean | $excludezip | Exclude zip files from the backup. |
| boolean | $excludenonwp | Exclude non-WordPress directories in site root. |
| boolean | $loadFilesBeforeZip | Load files before zip. |
| string | $ext | Backup file extension. |
| boolean | $pid | PID true|false. |
| boolean | $append | Append to backup file name. |
Action results on success, false on failure.
backup_db(string $fileName = '', string $ext = 'zip') : array|boolean
Backup site database.
| string | $fileName | Backup arhive file name. |
| string | $ext | Backup achive extension. |
$success Returns an array containing the Backup location & file size. Return FALSE on failure.
create_zip_full_backup(string $filepath, array $excludes, boolean $addConfig, boolean $includeCoreFiles, boolean $excludezip, boolean $excludenonwp) : boolean
Create full backup using default PHP zip library.
| string | $filepath | File path to create. |
| array | $excludes | Files to exclude from the backup. |
| boolean | $addConfig | Add config file to backup. |
| boolean | $includeCoreFiles | Include WordPress core files. |
| boolean | $excludezip | Exclude zip files from the backup. |
| boolean | $excludenonwp | Exclude non-WordPress directories in site root. |
Return true on success & false on failure.
copy_dir(array $nodes, array $excludes, string $backupfolder, boolean $excludenonwp)
Copy directory.
| array | $nodes | Default nodes. |
| array | $excludes | Files & directories to exclude. |
| string | $backupfolder | Backup folder. |
| boolean | $excludenonwp | Whether or not to exclude any wp core files. |
create_zip_pcl_full_backup2(string $filepath, array $excludes, boolean $addConfig, boolean $includeCoreFiles, boolean $excludezip, boolean $excludenonwp) : boolean
Create PCL zip full backup 2.
| string | $filepath | Path to file. |
| array | $excludes | Files & directories to exclude. |
| boolean | $addConfig | Add config file to backup. |
| boolean | $includeCoreFiles | Whether to include core files. |
| boolean | $excludezip | Whether to exclude zip archives. |
| boolean | $excludenonwp | Whether or not to exclude any wp core files. |
Return true on success.
create_backup_db(string $filepath_prefix, boolean $archiveExt = false, object $archiver = null) : array|array<mixed,string>
Create DB backup.
| string | $filepath_prefix | File path prefix. |
| boolean | $archiveExt | Archive extension. |
| object | $archiver | Archiver. |
Action response.