diff --git a/app/Console/Commands/BackupDatabaseStorage.php b/app/Console/Commands/BackupDatabaseStorage.php index 2454efc4..486221db 100644 --- a/app/Console/Commands/BackupDatabaseStorage.php +++ b/app/Console/Commands/BackupDatabaseStorage.php @@ -65,11 +65,11 @@ private function backupDatabase() ->setUserName(env('DB_USERNAME')) ->setPassword(env('DB_PASSWORD')); - $backup->dumpToFile($this->folder_database . '/' . $this->database_name); + $backup->dumpToFile($this->folder_database.'/'.$this->database_name); LogBackup::create([ 'status' => 1, - 'log' => 'Success backup pantau:backup-database-storage' + 'log' => 'Success backup pantau:backup-database-storage', ]); } catch (Exception $ex) { $this->command->notifMessage('Peringatan : gagal backup ke database Pantau, silakan cek koneksi !!!'); diff --git a/app/Http/Controllers/Helpers/RemoteController.php b/app/Http/Controllers/Helpers/RemoteController.php index a6d80d8b..080245cb 100644 --- a/app/Http/Controllers/Helpers/RemoteController.php +++ b/app/Http/Controllers/Helpers/RemoteController.php @@ -39,10 +39,10 @@ public function backupToCloudStorage($storage_type, $remote_name, $akhir_backup, exec('rclone -v sync '.folder_backup().' '.$remote_name.':'.$directory_backup); // notif berhasil - $this->command->notifMessage('Berhasil backup menggunakan tipe ' . $storage_type . ' tanggal ' . date('Y-m-d')); + $this->command->notifMessage('Berhasil backup menggunakan tipe '.$storage_type.' tanggal '.date('Y-m-d')); LogBackup::create([ 'status' => 1, - 'log' => 'Gagal backup menggunakan tipe ' . $storage_type + 'log' => 'Gagal backup menggunakan tipe '.$storage_type, ]); } else { // notif gagal