Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misc fixes and improvements to DatabaseBackup and DatabaseIntegrityCheck #864

Merged
merged 11 commits into from
Jan 7, 2025

Conversation

olahallengren
Copy link
Owner

@olahallengren olahallengren commented Jan 5, 2025

  • Add new parameter @MinDatabaseSizeForDifferentialBackup to DatabaseBackup

This will perform a differential backup for databases 1024 MB or larger and skip databases smaller than this size.

EXECUTE dbo.DatabaseBackup
@Databases = 'USER_DATABASES',
@Directory = 'C:\Backup',
@BackupType = 'DIFF',
@ChangeBackupType = 'N',
@MinDatabaseSizeForDifferentialBackup = 1024

This will perform a differential backup for databases 1024 MB or larger and a full backup for databases smaller than this size.

EXECUTE dbo.DatabaseBackup
@Databases = 'USER_DATABASES',
@Directory = 'C:\Backup',
@BackupType = 'DIFF',
@ChangeBackupType = 'Y',
@MinDatabaseSizeForDifferentialBackup = 1024
  • Optimize performance in DatabaseBackup for large number of databases
  • Add new parameter @NoInformationalMessages to DatabaseIntegrityCheck
  • Add support for new token Weekday for directory structure and file name
  • Add support for cleanup, when the BackupType is not in the directory structure
  • Add a check to determine if a full or differential backup is in progress before promoting a log backup
  • Add support for specifying a backup set name
  • Add support for backup set name as a token in directory structure and file name

@olahallengren olahallengren merged commit d7c976c into main Jan 7, 2025
@olahallengren olahallengren deleted the misc_fixes_and_improvements branch January 7, 2025 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment