mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-20 23:36:50 +01:00
Fix error on backup
This commit is contained in:
@@ -176,7 +176,7 @@ class SP_Config{
|
||||
$backupDir = SP_Init::$SERVERROOT;
|
||||
|
||||
$bakDstDir = $backupDir.'/backup';
|
||||
$bakFilePMS = $backupDir.'/backup/'.$siteName.'.tgz';
|
||||
$bakFile = $backupDir.'/backup/'.$siteName.'.tgz';
|
||||
$bakFileDB = $backupDir.'/backup/'.$siteName.'_db.sql';
|
||||
|
||||
if ( ! is_dir($bakDstDir) ){
|
||||
@@ -213,7 +213,7 @@ class SP_Config{
|
||||
$command = 'mysqldump -h '.$dbhost.' -u '.$dbuser.' -p'.$dbpass.' -r "'.$bakFileDB.'" '.$dbname.' 2>&1';
|
||||
$arrOut[] = system($command);
|
||||
//$bzip = system('bzip2 "'.$backupFile.'"');
|
||||
$command = 'tar czf '.$bakFilePMS.' '.$bakDirPMS.' --exclude "'.$bakDstDir.'"';
|
||||
$command = 'tar czf '.$bakFile.' '.$backupDir.' --exclude "'.$bakDstDir.'"';
|
||||
$arrOut[] = system($command);
|
||||
}
|
||||
|
||||
@@ -393,4 +393,4 @@ class SP_Config{
|
||||
self::setValue('account_link', 1);
|
||||
self::setValue('account_count', 10);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user