Restore Error: "The media set has X media families but only 1 are provided"
When trying to Restore a database, you may receive the following error:
"System.Data.SqlClient.SqlError: The media set has 2 media families but only 1 are provided. All members must be provided."
The Cause
This error occurs because the .bak file you uploaded is incomplete or structured incorrectly. This happens in two scenarios:
- Split Backups: You created a backup that was split across multiple files (e.g.,
backup_part1.bak and backup_part2.bak), but you only uploaded one of them. Our system only supports single-file backups.
- Appended Backups: You backed up your database to a file that already contained previous backups. This creates a "Media Set" containing multiple historical backups, which our simple restore tool cannot parse.
The Solution
You must recreate the backup file on your local computer before uploading it again.
- Open SQL Server Management Studio (SSMS).
- Right-click your local database and select Tasks > Back Up...
- Important: Under the "Destination" section, click Remove to clear any existing file paths. Then click Add to create a brand new file.
- Go to the Media Options tab.
- Select Overwrite all existing backup sets.
- Click OK to generate a clean, single-file backup.
- Upload this new file to our server and try the restore again.