mercredi 31 juillet 2019

ShellProcessFailed Error for Backup Manager - Laravel

I receive the error 'ShellProcessFailed in ShellProcessor.php line 35:' on creating database backup by using Laravel Backup Manager

Using XAMPP mysql and laravel 5 framework on Windows 10

public function store(Request $request)
{
    $this->validate($request, [
        'file_name' => 'max:30|regex:/^[\w._-]+$/'
    ]);

    try {
        $manager = app()->make(Manager::class);
        $fileName = $request->get('file_name') ?: date('Y-m-d_Hi');

        $manager->makeBackup()->run('mysql', [
                new Destination('local', 'backup/db/' . $fileName)
            ], 'gzip');

        return redirect()->route('backups.index');
    } catch (FileExistsException $e) {
        return redirect()->route('backups.index');
    }
}

Actual result(error): ShellProcessFailed in ShellProcessor.php line 35: Expected result: Successful backup process



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2Zh8R3P
via IFTTT

Aucun commentaire:

Enregistrer un commentaire