# MS SQL Server Backup

Configure MS SQL Server differential backup in TrueSecure Backup by following these steps:

Start the backup wizard by clicking the MS SQL Server button on the Home tab:<br>

<figure><img src="https://1045802759-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKVwxMpGGsUkYo2D86SKb%2Fuploads%2FiiektCoHIPgfZVrhwViQ%2Ft3.PNG?alt=media&#x26;token=4d23dc36-5999-42b9-8ebf-c66766c33eed" alt=""><figcaption></figcaption></figure>

In the next step, you select whether you want to perform a Local or Cloud Backup or a mix (Hybrid Backup). In this guide, we will choose the cloud backup destination.<br>

<figure><img src="https://1045802759-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKVwxMpGGsUkYo2D86SKb%2Fuploads%2Fhhq9aFOsN001HrS0xrUx%2Ft5.PNG?alt=media&#x26;token=e9c0b0a2-466b-432f-843c-d1231ea74cd5" alt=""><figcaption></figcaption></figure>

Choose your specific storage location (Amazon S3 in this example):\
If necessary, you can add a new storage account by clicking the corresponding link ‘Add new Storage Account.’

<figure><img src="https://1045802759-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKVwxMpGGsUkYo2D86SKb%2Fuploads%2FymWHsJw74x5FaaZ7orHX%2Ft4.PNG?alt=media&#x26;token=04150b2d-46ca-4b11-8431-07adffd415cd" alt=""><figcaption></figcaption></figure>

Provide the name for this backup plan and proceed. At this point, you need to connect TrueSecure Backup to the target SQL instance.\
TrueSecure Backup will verify the necessary permissions. If you have created a separate backup account in MS SQL Server, use the **Authentication** menu to specify its credentials.

<div><figure><img src="https://1045802759-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKVwxMpGGsUkYo2D86SKb%2Fuploads%2Fl1QH1kgnY2TTGeYIIyOh%2Ft6.PNG?alt=media&#x26;token=e1fe44cc-3756-4b7f-9e25-109049589a69" alt=""><figcaption></figcaption></figure> <figure><img src="https://1045802759-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKVwxMpGGsUkYo2D86SKb%2Fuploads%2FMhtv8APTK6QPubdgnLBQ%2Ft8.PNG?alt=media&#x26;token=24b8183d-34da-4d93-b089-76a027b67903" alt=""><figcaption></figcaption></figure></div>

{% hint style="info" %}
If you Select the first checkbox you will have go to your database and grant the permission like the picture below.
{% endhint %}

<figure><img src="https://1045802759-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKVwxMpGGsUkYo2D86SKb%2Fuploads%2Fm7u5tI60mQ5yFvAv7pIO%2Ft7.PNG?alt=media&#x26;token=1ed9442b-ee68-4f51-8ab4-c064495d70f9" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
If you select the second checkbox you can skip the above step and move onward no changes need to be made to the SQL database.
{% endhint %}

Select the databases you want to protect. We choose "DataFileIronSteelRetail" in this example.<br>

<figure><img src="https://1045802759-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKVwxMpGGsUkYo2D86SKb%2Fuploads%2FZtj2TeaxTceXHQcg8wcU%2Ft9.PNG?alt=media&#x26;token=212ec9b3-b637-4a44-931e-fc73c50d9f04" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
If you select the option backup all database then it will backup all of the database available if you select the second option backup all user database then all user related database will be uploaded.
{% endhint %}

On the **Compression and Encryption Options** screen, you can change additional processing options, such as data compression and encryption, or set cloud-specific options.

*Note: If your current SQL Server version/edition supports the compression feature,* TrueSecure *Backup will use the native SQL Server compression during a backup's processing. Otherwise,* TrueSecure *Backup will use a custom compression algorithm.*

<figure><img src="https://1045802759-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKVwxMpGGsUkYo2D86SKb%2Fuploads%2Fh3glTUvh0qUzpoS3VXOJ%2Ft10.PNG?alt=media&#x26;token=79f7df1d-79ee-4189-b73e-f9d29b90249d" alt=""><figcaption></figcaption></figure>

Specify the **Retention Policy** for your backup to save only the necessary number of copies. This helps to prevent you from running out of space or paying more than necessary when using cloud storage.\
\
You can set the expiration time for any backup copy and store the least amount of full copies.

<figure><img src="https://1045802759-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKVwxMpGGsUkYo2D86SKb%2Fuploads%2F7P4dBxsZ20WBTKhgNXYX%2Ft11.PNG?alt=media&#x26;token=057dda9a-c0bc-44b8-bb98-18a8163a85b6" alt=""><figcaption></figcaption></figure>

The scheduling step allows you to create a “run once” job or configure one of the available schedule templates. In most cases, we suggest using a **Recurring (predefined templates)** schedule that already includes a set of full, differential, and log backups, which you can modify depending on your needs.\
\
If that schedule is not what you are looking for, check **Recurring (advanced schedule)** and create your own template. It is also a good idea to check the **Run missed…** option, which will perform missed backup jobs of your server that were not available at the time of a backup run.

<figure><img src="https://1045802759-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKVwxMpGGsUkYo2D86SKb%2Fuploads%2Fy9XJE1miTFgATvwUP2vZ%2Ft12.PNG?alt=media&#x26;token=646e3d1c-e9b8-4eed-939f-2c842087864a" alt=""><figcaption></figcaption></figure>

Specify recurrence details from a set of templates. In the example below, we configure weekly full backups, *daily differential backups,* and transaction log backups every hour.

<figure><img src="https://1045802759-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKVwxMpGGsUkYo2D86SKb%2Fuploads%2F64aRvHKgVsnrfnBryqtf%2Ft13-1.png?alt=media&#x26;token=4cb27f11-07e0-460d-879a-5448192b932f" alt=""><figcaption></figcaption></figure>

Set the rest of the advanced options, such as pre/post actions and notifications settings, and complete the backup plan creation.

### Summary <a href="#header-counter-3" id="header-counter-3"></a>

Differential backup is a must-have part of any SQL Server database data protection plan. It allows you to simplify the data restoration process and keeps backups smaller than generic full backups.

All of the tools needed to perform a differential backup are built into SQL Server, but they require you to write scripts and perform manual configuration. If you would like to simplify your backup configuration, as well as use cloud or hybrid backup storage
