Skip to main content
Solved

Schedule SQL database restore to disk


Forum|alt.badge.img+9

Hello,

Is there a way to schedule a restore of the latest backup of a specific MS SQL database to disk?

Thanks at all.

Best answer by Scott Reynolds

@ThomasG  Thanks for sharing the pdf.

It is not displaying the other options as the simplified restore functions are leveraged here.

In the first window (screenshot) select advanced instead of restore to disk.

Once that is selected the restore options are displayed. Here click on advanced again at the bottom and under new window options tab and enter you restore to disk location and check the box as done below. Once that is complete click ok here to close this window and go back to original window which has that Job Initiation tab at top right.

 

View original
Did this answer your question?
If you have a question or comment, please create a topic

Forum|alt.badge.img+15

Hi @ThomasG 

Yes, you can schedule restores of latest backups, there’s a couple of different ways.

In the Commcell GUI, go through the steps of running a restore as would normally, configuring all the required options. At the final step of the process you have a choice to Run the restore now, Schedule or Save As Script.

If you select to restore the latest backup, this will simply take the latest backup was performed, regardless of whether it’s full or transaction log. So if restoring to another SQL instance, it’s important to ensure the database is ready as most recent backup might be a transaction log backup.

If you select Schedule, you are then presented with the various options for scheduling the restore, frequency, etc.

If you select save as script, this will output a batch file and xml file with the configured options and you will need to take this file and execute as a script separately.

Please see Save as Script Overview for more info.

Thanks,

Stuart


Forum|alt.badge.img+9
  • Byte
  • March 30, 2022

Hi Stuart,

I know these options, but if we do a restore of a SQL database to disk, these options (schedule, save as script are not shown. We can only click OK and restore is running immediatley and is successful.

Thanks,

Thomas


Mike Struening
Vaulter
Forum|alt.badge.img+23

@ThomasG , can you confirm you are in the CommCell Console, not the Admin Center interface?


Forum|alt.badge.img+9
  • Byte
  • March 30, 2022

Hello Mike,

Yes, Commcell Console. I will share a screenshot tomorrow.


Mike Struening
Vaulter
Forum|alt.badge.img+23

Awesome, thanks!!


Forum|alt.badge.img+14

Hello @ThomasG 
 

Those should be an option. Once you setup your desired restore to disk options, location, etc there should be a job initiation tab next to general. Here you can configure schedule, etc.

 


Forum|alt.badge.img+9
  • Byte
  • March 31, 2022

Hello,

Please have a look athe PDF. Thank you.


Forum|alt.badge.img+14

@ThomasG  Thanks for sharing the pdf.

It is not displaying the other options as the simplified restore functions are leveraged here.

In the first window (screenshot) select advanced instead of restore to disk.

Once that is selected the restore options are displayed. Here click on advanced again at the bottom and under new window options tab and enter you restore to disk location and check the box as done below. Once that is complete click ok here to close this window and go back to original window which has that Job Initiation tab at top right.

 


Forum|alt.badge.img+9
  • Byte
  • March 31, 2022

Hi Scott,

Damn, I didn’t try this. Thank you very much.

( I always thought, I am not a beginner in Commvault 😉)


Forum|alt.badge.img+9
  • Byte
  • April 1, 2022

Hello Scott,

Oh my god, I didn’t try this … Sorry for my beginners post here … 😉

Thank you very much.

 


Forum|alt.badge.img+14

Hello Thomas

No worries just glad we could help. Just adding that while not valid for restore to disk there are some other functions like restore ‘full only’ options that sometimes are frequently requested. Also take note of the latest backup option as well if you are wanting to restore the last backup performed at the time of the restore otherwise it will restore based on the time you performed the browse.

I will add if you are looking for a simple way to automate replication to a standby database SQL live Sync could provide a solution.

https://documentation.commvault.com/11.24/expert/92005_replication_of_sql_databases.html

 

Scott


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings