Browse Source

Config Added

pull/1/head
GamerClassN7 1 year ago
parent
commit
0c3d14754f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/plugins/DatabaseBackup.php

+ 1
- 1
app/plugins/DatabaseBackup.php View File

@ -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) {

Loading…
Cancel
Save