create lat lng validation
This commit is contained in:
@@ -35,13 +35,13 @@ class BackupDatabaseCommand extends Command
|
||||
$backup = Process::path($path)->forever()->run("sudo mariadb-backup --backup --target-dir={$path}/{$time} --user={$user} --password={$password}");
|
||||
|
||||
if ($backup->failed()) {
|
||||
Log::channel('mariadb-backup')->info("Backup failed at {$time}");
|
||||
Log::channel('mariadb-backup')->info("Backup failed at {$time} error message : " . $backup->errorOutput());
|
||||
}
|
||||
|
||||
$prepare = Process::path($path)->forever()->run("sudo mariadb-backup --prepare --target-dir={$path}/{$time}");
|
||||
|
||||
if ($prepare->failed()) {
|
||||
Log::channel('mariadb-backup')->info("Preparation failed at {$time}");
|
||||
Log::channel('mariadb-backup')->info("Preparation failed at {$time} error message : " . $prepare->errorOutput());
|
||||
}
|
||||
|
||||
Log::channel('mariadb-backup')->info("Backup successful at {$time}");
|
||||
|
||||
Reference in New Issue
Block a user