I'm new to AlwaysOn Availability groups
and have set it up in my DEV
environment. I currently have it set to do the backups on my primary because we are only using the secondary for read-only reporting purposes. The backups are running but how do I control how often? Currently it does a FULL every night, a DIFF every night at midnight and log backups every hour. I don't see in the AVG setup where to specify how often…I currently do a FULL at 10pm
, DIFF every 4 hours and LOG every 15 minutes
. I also currently use Ola's backup scripts and I'm confused about how to continue to use his scripts when I setup AVG in my production. I've read that there is a parameter AVAILABILITY_GROUP_DATABASES
for Ola's scripts. Do I use this to be able to control all the backups with Ola's scripts? And then the AVG will not back up the databases…instead they will be controlled by Ola's scripts?
I've tried testing this and no matter what I do, the AVG always does the backups and Ola's scripts are ignored.
Best Answer
I am running Availability Groups and using Ola's backup solution, and here is how I have it set up:
dbo.DatabaseBackup
procedure; schedule this to run however often you need.Here's what you need to know about Ola's scripts: