diff --git a/routes/web.php b/routes/web.php index 53ea6fdbf..339987bc9 100644 --- a/routes/web.php +++ b/routes/web.php @@ -269,11 +269,12 @@ Route::middleware(['auth'])->group(function () { } else { $server = $execution->scheduledDatabaseBackup->database->destination->server; } + $privateKeyLocation = $server->privateKey->getKeyLocation(); $disk = Storage::build([ 'driver' => 'sftp', 'host' => $server->ip, - 'port' => $server->port, + 'port' => (int) $server->port, 'username' => $server->user, 'privateKey' => $privateKeyLocation, 'root' => '/',