Add a return string to the backup and restore.

This commit is contained in:
Mark Crane
2014-11-13 07:00:29 +00:00
parent e396d07eb1
commit 9e128ca34e
+2 -1
View File
@@ -81,6 +81,7 @@ include "root.php";
public function backup($type, $format) { public function backup($type, $format) {
$cmd = $this->command("backup", $format); $cmd = $this->command("backup", $format);
exec($cmd); exec($cmd);
return $cmd;
} }
public function restore($file) { public function restore($file) {
@@ -95,6 +96,7 @@ include "root.php";
} }
$cmd = $this->command("restore", $file); $cmd = $this->command("restore", $file);
exec($cmd); exec($cmd);
return $cmd;
} }
public function download($file) { public function download($file) {
@@ -116,7 +118,6 @@ include "root.php";
fpassthru($fd); fpassthru($fd);
exit; exit;
} }
exec($cmd);
} }
} }
} }