Backup Check options #1050
-
Scenario: I would like to have DBA Dash tell me, if this happens, because if it does, I will then manually move the files backup to the primary location when i am able to do so. The only way I can imagine for this to work, is by creating a custom check. I am placing errors in the CommandLog-table, so this would be the place to query the results for the custom check. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The custom check would need to be deployed to all the monitored instances - or at least the ones where you need this check to run. A custom check isn't the only option - you could also create an agent job that will fail when it requires your attention (which DBA Dash reports on anyway). Both options would work, but both require you to deploy code to your monitored instances. If you have a number of SQL instances, Invoke-DbaQuery from dbatools might help with the deployment. Can you write your backup directly to the primary location? Why does it fail? If your restore process can handle multiple paths this might eliminate the need for moving the files. The log shipping tool I created can work with multiple paths and it can be used just as a database restore tool. |
Beta Was this translation helpful? Give feedback.
-
The procedure needs to be located on whatever database the service connects to - which is very likely the master database. You can deploy the procedure there. |
Beta Was this translation helpful? Give feedback.
The procedure needs to be located on whatever database the service connects to - which is very likely the master database. You can deploy the procedure there.
To change the database the service connects to, set the initial catalog in the connection string. If it's not set it should connect to the master database unless the service account user's default database has been changed.