|
YaWK
24.1
Yet another WebKit
|
Inheritance diagram for YAWK\BACKUP\FILES\fileBackup:Public Member Functions | |
| copyFolder ($db, $folder, $targetFolder) | |
| Copy a folder from source to target, including all subdirectories. More... | |
| doFolderBackup ($db) | |
| Copy files to tmp folder, zip it and move it to the place where this backup should be stored (current or archive...) More... | |
| getHashValue ($db, $file) | |
| Get and return hash value of $file. More... | |
| initFolderBackup (object $db, string $overwriteBackup, string $zipBackup) | |
| Initialize and start file backup. More... | |
| setBackupSettings () | |
| Write backup.ini file (used by backup restore methods) More... | |
| startFileBackup ($db) | |
| Check settings and start file backup. More... | |
| zipFileExists () | |
| Check if .zip backup file exists. More... | |
Public Member Functions inherited from YAWK\BACKUP\backup | |
| __construct ($db) | |
| backup constructor. prepare temp folder on class instantiation More... | |
| checkFolders ($restoreFolders) | |
| check restore folders, check + set permissions of restore folders More... | |
| checkPermissions ($folder) | |
| check folder permissions and return permissions as string (eg 0755) More... | |
| checkZipFunction () | |
| Check if ZipArchive function exists. More... | |
| doRestore ($db, $restoreFolders) | |
| Restore Data physically to folder, restore .sql file to database if needed. More... | |
| getArchiveBackupFilesArray () | |
| get all files from archive backup folder into array More... | |
| getCurrentBackupFilesArray () | |
| get all files from current backup folder into array More... | |
| init ($db) | |
| Init Backup Class (run backup) More... | |
| parseIniFile ($db, $iniFile) | |
| Parse backup ini file. More... | |
| restore ($db, $file, $folder) | |
| Manage how a backup will be restored from backup folder. More... | |
| run ($db) | |
| Run a new backup, depending on chosen backup method. More... | |
| runDatabaseBackup ($db, $storeSqlTmp) | |
| Include mysql backup class and run mysqldump backup. More... | |
| runFileBackup ($db) | |
| Run File Backup from $sourceFolder. More... | |
| setIniFile (object $db) | |
| Set backup information file (backup.ini) More... | |
| setPermissions ($folder, $filemode) | |
| set folder permissions and do some chmod stuff to with given $filemode to $folder More... | |
| zipFolder ($db, $source, $destination) | |
| Zip a whole folder from $source to $destination.zip. More... | |
Definition at line 14 of file backup-fileBackup.php.
| YAWK\BACKUP\FILES\fileBackup::copyFolder | ( | $db, | |
| $folder, | |||
| $targetFolder | |||
| ) |
Copy a folder from source to target, including all subdirectories.
| $db | |
| $folder | |
| $targetFolder |
Definition at line 425 of file backup-fileBackup.php.
References $db, YAWK\BACKUP\FILES\fileBackup\$targetFolder, and YAWK\sys\xcopy().
Referenced by YAWK\BACKUP\FILES\fileBackup\doFolderBackup().
| YAWK\BACKUP\FILES\fileBackup::doFolderBackup | ( | $db | ) |
Copy files to tmp folder, zip it and move it to the place where this backup should be stored (current or archive...)
return bool if $this->backupZipFile exists
Definition at line 134 of file backup-fileBackup.php.
References YAWK\BACKUP\FILES\fileBackup\$contentFolder, $db, $folder, YAWK\BACKUP\FILES\fileBackup\$mediaFolder, YAWK\BACKUP\FILES\fileBackup\$systemFolder, YAWK\BACKUP\FILES\fileBackup\copyFolder(), YAWK\sys\recurseRmdir(), YAWK\BACKUP\FILES\fileBackup\setBackupSettings(), YAWK\sys\writeIniFile(), and YAWK\BACKUP\backup\zipFolder().
Referenced by YAWK\BACKUP\FILES\fileBackup\startFileBackup().
| YAWK\BACKUP\FILES\fileBackup::getHashValue | ( | $db, | |
| $file | |||
| ) |
Get and return hash value of $file.
return hashed string or false
Definition at line 108 of file backup-fileBackup.php.
References $db.
| YAWK\BACKUP\FILES\fileBackup::initFolderBackup | ( | object | $db, |
| string | $overwriteBackup, | ||
| string | $zipBackup | ||
| ) |
Initialize and start file backup.
| object | $db | database object |
| string | $overwriteBackup | if overwrite backup is allowed or not "true" | "false" |
| string | $zipBackup | if backup should be zipped or not "true" | "false" |
Definition at line 48 of file backup-fileBackup.php.
References YAWK\BACKUP\backup\$overwriteBackup, YAWK\BACKUP\backup\$zipBackup, and YAWK\BACKUP\FILES\fileBackup\startFileBackup().
| YAWK\BACKUP\FILES\fileBackup::setBackupSettings | ( | ) |
Write backup.ini file (used by backup restore methods)
write all relevant backup information into this file
Definition at line 92 of file backup-fileBackup.php.
References YAWK\BACKUP\backup\$backupMethod, YAWK\BACKUP\backup\$backupSettings, YAWK\BACKUP\FILES\fileBackup\$finalFilename, YAWK\BACKUP\FILES\fileBackup\$targetFolder, and YAWK\sys\now().
Referenced by YAWK\BACKUP\FILES\fileBackup\doFolderBackup().
| YAWK\BACKUP\FILES\fileBackup::startFileBackup | ( | $db | ) |
Check settings and start file backup.
return bool if zip archive exists
Definition at line 449 of file backup-fileBackup.php.
References YAWK\BACKUP\backup\$archiveBackupSubFolder, $db, YAWK\BACKUP\FILES\fileBackup\doFolderBackup(), and YAWK\BACKUP\FILES\fileBackup\zipFileExists().
Referenced by YAWK\BACKUP\FILES\fileBackup\initFolderBackup().
| YAWK\BACKUP\FILES\fileBackup::zipFileExists | ( | ) |
Check if .zip backup file exists.
return bool if $this->backupZipFile exists
Definition at line 70 of file backup-fileBackup.php.
Referenced by YAWK\BACKUP\FILES\fileBackup\startFileBackup().
| YAWK\BACKUP\FILES\fileBackup::$backupZipFile = 'backup-custom.zip' |
| string | default filename of .zip file |
Definition at line 23 of file backup-fileBackup.php.
| YAWK\BACKUP\FILES\fileBackup::$contentFolder = '../content/' |
| string | content folder |
Definition at line 27 of file backup-fileBackup.php.
Referenced by YAWK\BACKUP\FILES\fileBackup\doFolderBackup().
| YAWK\BACKUP\FILES\fileBackup::$currentFolder = '' |
| string | current processing folder |
Definition at line 33 of file backup-fileBackup.php.
| YAWK\BACKUP\FILES\fileBackup::$finalFilename = '' |
| string | final filename |
Definition at line 35 of file backup-fileBackup.php.
Referenced by YAWK\BACKUP\FILES\fileBackup\setBackupSettings().
| YAWK\BACKUP\FILES\fileBackup::$hashValue = '' |
| string | hash value of .zip file |
Definition at line 25 of file backup-fileBackup.php.
| YAWK\BACKUP\FILES\fileBackup::$mediaFolder = '../media/' |
| string | media folder |
Definition at line 29 of file backup-fileBackup.php.
Referenced by YAWK\BACKUP\FILES\fileBackup\doFolderBackup().
| YAWK\BACKUP\FILES\fileBackup::$sourceFolder = '' |
| string | source folder to backup |
Definition at line 19 of file backup-fileBackup.php.
| YAWK\BACKUP\FILES\fileBackup::$systemFolder = '../system/' |
| string | system folder |
Definition at line 31 of file backup-fileBackup.php.
Referenced by YAWK\BACKUP\FILES\fileBackup\doFolderBackup().
| YAWK\BACKUP\FILES\fileBackup::$targetFolder = '../system/backup/current/' |
| string | path, where the backup will be stored |
Definition at line 21 of file backup-fileBackup.php.
Referenced by YAWK\BACKUP\FILES\fileBackup\copyFolder(), and YAWK\BACKUP\FILES\fileBackup\setBackupSettings().
| YAWK\BACKUP\FILES\fileBackup::$zip |
| object | zip object |
Definition at line 17 of file backup-fileBackup.php.