Body
The MSSQL databases have to be in the .bak format in-order to restore it via the Plesk panel. However, the database backups which we keep on our backup servers are in the format of ".MDF" and ".LDF". So you need to attach these files to convert it to .bak format file. You can do this by following the steps:
Step 1: Attach .MDF and .LDF files.
- Login to the MSSQL server installed in your local machine using MSSQL management studio tool (version 2012).
- Right-click Databases and then click Attach.
- Click Add and browse the .MDF and .LDF files.
- After adding the .MDF and .LDF files click OK.
- The database is locally restored in the MSSQL server installed on your local machine.
Step 2: Generate the .bak file for backup.
- If you want to restore this database via the Plesk panel, you need to take the database backup in .bak format using the following steps:
- Log in to the same MSSQL management studio tool where you have locally restored it using .MDF and .LDF files.
- Right click on the database shown under Databases list.
- Click tasks and then click Backup.
- Note down the backup file location and name and click OK.
- You can see the database backup in .bak format (in the same location where it was listed in point 3).