I'm currently using the spatie laravel-backup for backup my database.
But when I execute the command
php artisan backup:run
I get this error :
Backup failed because The dump process failed with exitcode 1 : General error : The system cannot find the path specified.
After my research, I tried to change my dump_binary_path to 'D:\xampp\mysql\backup\mysql' but it still not working. Therefore I'm thinking that I might have entered the wrong path .. is there a way to find the path?
Here is my code in config/database.php
'mysql' => [
'driver' => 'mysql',
'url' => env('DATABASE_URL'),
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '3306'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'unix_socket' => env('DB_SOCKET', ''),
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
'prefix_indexes' => true,
'strict' => true,
'engine' => null,
'dump' => [
'dump_binary_path' => 'D:\xampp\mysql\bin',
'use_single_transaction',
'timeout' => 60 * 5, // 5 minute timeout
],
'options' => extension_loaded('pdo_mysql') ? array_filter([
PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
]) : [],
],
Any answer and suggestion are higher appreciated