We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8b9f04 commit 8f03253Copy full SHA for 8f03253
internal/namespaces/rdb/v1/custom_backup.go
@@ -288,6 +288,7 @@ func backupDownloadCommand() *core.Command {
288
Timeout: scw.TimeDurationPtr(backupActionTimeout),
289
RetryInterval: core.DefaultRetryInterval,
290
}
291
+
292
backup, err := api.WaitForDatabaseBackup(backupRequest)
293
if err != nil {
294
return nil, err
@@ -320,6 +321,11 @@ func backupDownloadCommand() *core.Command {
320
321
322
323
httpClient := core.ExtractHTTPClient(ctx)
324
325
+ if backup.DownloadURL == nil {
326
+ return nil, fmt.Errorf("download URL is still nil after export")
327
+ }
328
329
res, err := httpClient.Get(*backup.DownloadURL)
330
331
0 commit comments