create lat lng validation

This commit is contained in:
2025-10-11 11:48:04 +03:30
parent 21ed605f28
commit bfd53bcd19
3 changed files with 131 additions and 119 deletions

View File

@@ -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}");