Description of the feature
I'm using dbo.DatabaseBackup to backup database and transaction log.
When I'm adding a new database to an availability group with automatic seeding, the automatic seeding fails because the transaction log backup run in the middle of seeding the database.
I would like to have an option to skip log backups for databases which are currently automatically seeding.
Something like this:
EXEC dbo.DatabaseBackup
@Databases = 'AVAILABILITY_GROUP_DATABASES',
@BackupType = 'LOG',
@AutomaticSeedingAction = 'SKIP_DATABASE'
And in dbo.DatabaseBackup, check sys.dm_hadr_physical_seeding_stats, to see if the database is currently auto-seeding (end_time_utc IS NULL would, I guess, be a good check).
Description of the feature
I'm using dbo.DatabaseBackup to backup database and transaction log.
When I'm adding a new database to an availability group with automatic seeding, the automatic seeding fails because the transaction log backup run in the middle of seeding the database.
I would like to have an option to skip log backups for databases which are currently automatically seeding.
Something like this:
And in dbo.DatabaseBackup, check sys.dm_hadr_physical_seeding_stats, to see if the database is currently auto-seeding (end_time_utc IS NULL would, I guess, be a good check).