fix: backup restore delete all files

This commit is contained in:
Matthew Penner 2021-03-12 14:47:49 -07:00
parent c8c9c3d3cb
commit 582521f419
3 changed files with 11 additions and 6 deletions

View file

@ -213,7 +213,7 @@ class BackupController extends ClientApiController
// actions against it via the Panel API.
$server->update(['status' => Server::STATUS_RESTORING_BACKUP]);
$this->repository->setServer($server)->restore($backup, $url ?? null, $request->input('truncate') === 'true');
$this->repository->setServer($server)->restore($backup, $url ?? null, $request->input('truncate'));
});
return new JsonResponse([], JsonResponse::HTTP_NO_CONTENT);