Skip to content

Option to skip log backups for databases currently automatically seeding #983

@transmokopter

Description

@transmokopter

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).

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions