spatie / laravel-backup

A package to backup your Laravel app
https://spatie.be/docs/laravel-backup
MIT License
5.65k stars 763 forks source link

No file stored, no error #1519

Closed nakarimi closed 2 years ago

nakarimi commented 2 years ago

I configured the backup on the ubuntu system, it is working fine with the command line and in the controller. I transferred it to windows, set the binary path, and it is working fine and made a backup by command line, but when using a controller with a route to creating a backup it is not working. No error returned, but no backup file was created as well.

I run the project with PHP artisan serve.

  public function newBackup(Request $request){
    try {
      Artisan::call("backup:run");
    } catch (\Throwable $th) {
      throw $th;
    }
  }