mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
Config Added
This commit is contained in:
1 parent
95c8e54199
commit
0c3d14754f
1 file changed
+1
-1
@@ -8,7 +8,7 @@ class DatabaseBackup
|
||||
$backupWorker = new DatabaseBackup;
|
||||
$filenames[] = $backupWorker->scheme(); //Backup Database scheme
|
||||
$filenames[] = $backupWorker->data(); //Backup Database Data
|
||||
$filenames[] = $_SERVER['DOCUMENT_ROOT'] . 'config/config.php'; //Backup Configuration File
|
||||
$filenames[] = $_SERVER['DOCUMENT_ROOT'] . '/config/config.php'; //Backup Configuration File
|
||||
$backupWorker->compress($_SERVER['DOCUMENT_ROOT'] . BASEDIR . '/backup/' . date("Y-m-d", time()) . '.zip', $filenames);
|
||||
return 'sucessful';
|
||||
} catch (Exception $e) {
|
||||
|
||||
Reference in new issue
Block a user