Fix SQL Server Error 3241 (Media Family on Device Is Incorrectly Formed)

8 min read

SQL Server error 3241 stops a restore and says the media family on the device is incorrectly formed. Error 3241 points to a backup file that SQL Server cannot open so no database comes back.

Damaged backup files and half copied backup files cause most cases. This guide explains the causes and five fixes in the order that protects your data.

Quick SummarySQL Server error 3241 means SQL Server cannot open the backup file. Check the file with RESTORE VERIFYONLY first. Copy the BAK file again and compare the size. Restore an older or newer backup from the same chain. Install the latest update when the backup uses TDE. Stop any backup filter tool before the restore. Use SQL Backup Recovery when no good backup remains. Copy the file before any repair.

What Causes SQL Server Error 3241?

According to Microsoft, error 3241 typically points to damaged backups or to media that failed while it stored or moved the backup. Known product conditions raise the same error.

  • Damaged backup file. A disk fault or a power cut corrupted the BAK file after SQL Server created it.
  • Interrupted copy. The copy stopped before it finished so the file on the new server is smaller than the original.
  • Failing storage media. The share, tape or disk that stored the backup returned I/O errors.
  • TDE and compression fault. Microsoft documents error 3241 for compressed backups of TDE databases on SQL Server 2016 and 2019.
  • Backup filter tool. The Backup to Microsoft Azure Tool intercepted the restore of a file copied from another server in a case that Microsoft support solved.
Msg 3241, Level 16, State 0, Line 2
The media family on device 'G:\Backups\SalesDB_Full.bak' is incorrectly formed. SQL Server cannot process this media family.
Msg 3013, Level 16, State 1, Line 2
RESTORE FILELIST is terminating abnormally.

Do You Know?Error 3013 appears under error 3241 in the message. Microsoft calls error 3013 a generic message that says only that a restore ended abnormally. Error 3241 names the real reason.

How to Check the Backup File Before You Restore It?

Execute RESTORE HEADERONLY and RESTORE VERIFYONLY on the file before you try anything else. Microsoft states that RESTORE VERIFYONLY confirms that the backup set has every volume and that SQL Server can open the entire backup. RESTORE VERIFYONLY does not verify the structure of the data inside the backup.

RESTORE HEADERONLY FROM DISK = N'D:\Backups\SalesDB_Full.bak';

RESTORE VERIFYONLY FROM DISK = N'D:\Backups\SalesDB_Full.bak';

SQL Server error 3241 on either command proves that the file is the problem and not your restore options. Start with Method 1 in that case.

How to Fix SQL Server Error 3241?

Try the methods in this order. Every example uses the database SalesDB and the folder D:\Backups. Replace the names with your own values.

Method 1: Copy the Backup File Again and Compare the Size

Copy the BAK file from the source server again when the copy on the new server is smaller. Compare the SHA256 hash of both files with PowerShell. Matching hashes prove that the copy is identical to the source.

Get-FileHash -Algorithm SHA256 -Path D:\Backups\SalesDB_Full.bak

Matching hashes and the same error mean SQL Server damaged nothing during the copy. Damage already existed when SQL Server created the backup. Move to Method 2.

Method 2: Restore an Older or Newer Backup From the Chain

Microsoft advises you to find another backup on a different medium or an earlier or later backup of the same database. List the backups that SQL Server recorded for the source database. Restore the newest file that passes RESTORE VERIFYONLY.

SELECT TOP 10 database_name, type, backup_start_date, backup_finish_date
FROM msdb.dbo.backupset
WHERE database_name = N'SalesDB'
ORDER BY backup_finish_date DESC;

Follow restore database with NORECOVERY when you need differential and log backups on top of the full backup.

Heads UpDifferential and log backups need their full backup. Good log backups cannot help when the full backup remains damaged. Plan the chain with backup and restore strategy for SQL Server so the next failure ends here.

Method 3: Install the Update for TDE Compressed Backups

Microsoft lists error 3241 for compressed backups of databases that use transparent data encryption. KB5014298 describes the fault on SQL Server 2019 for Windows and a similar article addresses SQL Server 2016.

Install the latest cumulative update on the server that restores the backup. Every cumulative update contains the fixes of the earlier updates. Restore the same backup again after the update.

Method 4: Stop the Backup Filter Tool Before the Restore

Check for the Backup to Microsoft Azure Tool when the backup came from another machine. Backup to Microsoft Azure Tool watches files with set extensions and looks for a matching backup in Azure storage during a restore. Copied files have no match so the restore fails with error 3241.

Microsoft support names three fixes. Limit the tool to specific paths or stop the tool service before the restore. Rename the copied file with another extension when both options fail.

Method 5: Recover the Backup With SQL Backup Recovery

Use this method when no readable backup remains and SQL Server error 3241 survives Methods 1 to 4. SQL Backup Recovery repairs damaged BAK files without a restore and previews the tables, stored procedures, functions, views and triggers inside. SQL Backup Recovery opens full, differential and compressed backups and exports the data to a SQL Server database, SQL scripts or CSV files.

Download SQL Backup Recovery Buy SQL Backup Recovery

  1. Open SQL Backup Recovery and click Browse to load the BAK file.

Load BAK file option in SQL Backup Recovery

  1. Select the backup file and click Open. Choose Auto-Detect for the version or select the version yourself.

Auto-Detect version option in SQL Backup Recovery

  1. Select the backup file and click Recover. Wait for the scan to finish and click Close.

Recover button in SQL Backup Recovery

  1. Preview the recovered tables, views and stored procedures. Deleted objects appear in red.

Preview of recovered backup data in SQL Backup Recovery

  1. Click Export and select an Export To option. Choose SQL Server Database, CSV File Format or SQL Server Compatible SQL Scripts.

Export To options in SQL Backup Recovery

  1. Select the authentication mode and choose Create New Database or Export to Existing Database. Select Export With Only Schema or Export With Schema & Data and click Save.

Schema and data export options in SQL Backup Recovery

What Are the Software and System Specifications of SQL Backup Recovery?

Check both tables before you install SQL Backup Recovery on the server or on a separate workstation.

Software Specifications

Attribute Detail
Software name SQL Backup Recovery
Version 12.0
File types Full, differential and compressed BAK files
SQL Server versions 2025, 2022, 2019, 2017, 2016, 2014, 2012, 2008 R2, 2008, 2005 and 2000
Recovered items Tables, stored procedures, functions, views, triggers and deleted records
Export options SQL Server database, SQL scripts and CSV
SQL Server installation Needed for compressed BAK files
Demo limit Export of 25 records per table and 5 other categories

System Specifications

Component Requirement
Processor Intel Core 2 Duo E4600 at 2.40 GHz or equivalent
RAM 4 GB
Hard disk space 100 MB free
Operating system Windows 7, 8 and 10 (32 or 64 bit), Windows 11 (64 bit), Windows Server 2008, 2012 R2, 2016, 2019, 2022 and 2025
Framework Microsoft .NET Framework 4.5 or later
Permission Launch SQL Backup Recovery as administrator

Frequently Asked Questions

Does Error 3241 Mean the Source Database Is Corrupt?

No. SQL Server error 3241 describes the backup file and says nothing about the live database. Check the source database with DBCC CHECKDB to be sure.

What Is the Difference Between Error 3241 and Error 3013?

Error 3013 is a generic message that says a backup or restore ended abnormally. Error 3241 appears next to it and names the damaged media family.

Can You Restore a Backup From a Newer SQL Server Version?

No. Microsoft lists error 3169 when a backup comes from a version that is incompatible with the server. Install the same version or a newer version first.

Does RESTORE VERIFYONLY Prove That a Backup Is Safe?

No. RESTORE VERIFYONLY checks that the backup set has every volume and that SQL Server can open it. Data structure inside the backup remains unchecked.

Can You Fix Error 3241 Without Another Backup?

Yes. Copy the file again and install the update for TDE backups. Use SQL Backup Recovery to export the data when the file remains damaged.

Does SQL Backup Recovery Open Compressed Backups?

Yes. SQL Backup Recovery opens compressed and differential BAK files. SQL Server must be installed on the machine for compressed files.

How Do You Prevent Error 3241?

Create backups WITH CHECKSUM and verify every backup with RESTORE VERIFYONLY. Compare the file size after every copy and store a second copy on other media.

Final Words on SQL Server Error 3241

SQL Server error 3241 comes from a damaged or half copied backup file. Check the file with RESTORE VERIFYONLY and restore another backup of the chain.

Recover the data with SQL Backup Recovery when no readable backup remains. Backup errors like error 3154 and error 3201 follow different fixes.

Key Takeaways

  • SQL Server error 3241 means SQL Server cannot open the backup file.
  • RESTORE VERIFYONLY and a hash comparison prove whether the file is damaged.
  • Install the cumulative update when a TDE compressed backup fails.
  • SQL Backup Recovery exports the data when no good backup remains.