Forum Discussion

H_Sharma's avatar
H_Sharma
Level 6
10 years ago

Sql backups are taking time.

Hello Experts. Our sql backup policy is taking more than 13 hours to get completed. Pls find the extracted log on 13 after 2 AM it has another log of 6:32 Am. What might be the issue.   1...
  • Wiriadi_Wangsa's avatar
    10 years ago

    Hi Hargyan,

    If waiting for tape is the issue, a combination of BATCHSIZE and multiplexing may help. 

    For example, if you set BATCHSIZE to 3, and enable set media multiplexing to 3, you may be able to stream 3 DB backups to one tape at the same time.

    NOTE: Doing this will speed the backup, however restore may be slower as it takes more time to extract data from a multiplexed tape. I just want to make sure you make an informed decision.

    If you do go ahead, just add this line (the one in bold) just above ENDOPER TRUE:

    BATCHSIZE 3

    Then go to the Admin Console > Policies > double click the SQL backup policy > go to Schedules > double click the Default Application Backup schedule > change the Media multiplexing to 3.

    Next, go to the Storage > Storage Units > double click the tape storage unit you use for SQL backup, tick "Enable Multiplexing" and set Maximum streams per drive to 3.

    Click OK.

    I use 3 in this example, but the max number of multiplexing can be up to 32. If you set to high, make sure your SQL Server, media server & tape can handle the high number.