maintenance task DB

This commit is contained in:
jokob-sk
2022-01-14 14:55:14 +11:00
parent 0120d3f226
commit e1c410be21
2 changed files with 9 additions and 3 deletions

View File

@@ -259,11 +259,13 @@ function createBackupDB() {
// echo "Error copying DB. SSH into instance and copy manually.";
// }
$command = escapeshellcmd('/home/pi/pialert/back/maintenance.py backup_DB');
$output = shell_exec($command);
$mystring = system('python /home/pi/pialert/back/maintenance.py backup_DB', $retval);
// $command = escapeshellcmd('/home/pi/pialert/back/maintenance.py backup_DB');
// $output = shell_exec($command);
echo $output;
//echo $output;
echo $retval;
}
//------------------------------------------------------------------------------