Skip to content

Bak restore from local http server corrupted file #566

Open
@Dennis-Do

Description

@Dennis-Do

Hello,

I try to restore a bak file hosted on a local http server while I am creating a new container with the create command. For testing purpose I downloaded the bak file from https://aka.ms/AdventureWorksLT.bak.

When I copy the file to the container with 'docker cp' command I can successful restore ist. So the file is ok.

When I try to restore the file with the following command the file seems corrupted:

sqlcmd create mssql --name express --accept-eula --using http://localhost:3000/files/WideWorldImporters-Full.bak

I then get the following error message:

Image

The file is in the right container folder, the size of the file is the same as before but even if I try to restore it a manually after the creation of the container it seems as there is no database backup in the file.

As http server I used a nodejs express instance:

`const express = require('express')
const app = express()
const port = 3000

app.use(express.static('public'))

app.listen(port, () => {
console.log(Example app listening on port ${port})
})`

Please can somebody explain me why it is not working before I get crazy?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions