Skip to content

Commit 443a52f

Browse files
authored
Backup-SqlDscDatabase: Add new command for database backups (#2366)
1 parent a2ec8dc commit 443a52f

File tree

8 files changed

+1181
-0
lines changed

8 files changed

+1181
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
### Added
99

10+
- Added public command `Backup-SqlDscDatabase` to perform database backups using
11+
SMO's `Microsoft.SqlServer.Management.Smo.Backup` class. Supports full,
12+
differential, and transaction log backups with options for compression,
13+
copy-only, checksum, and retention. Accepts both Server and Database objects
14+
via pipeline
15+
([issue #2365](https://github.com/dsccommunity/SqlServerDsc/issues/2365)).
1016
- `Set-SqlDscServerPermission`
1117
- Added integration tests for negative test scenarios including invalid
1218
permission names and non-existent principals.

azure-pipelines.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ stages:
341341
'tests/Integration/Commands/ConvertFrom-SqlDscDatabasePermission.Integration.Tests.ps1'
342342
'tests/Integration/Commands/New-SqlDscDatabase.Integration.Tests.ps1'
343343
'tests/Integration/Commands/New-SqlDscDatabaseSnapshot.Integration.Tests.ps1'
344+
'tests/Integration/Commands/Backup-SqlDscDatabase.Integration.Tests.ps1'
344345
'tests/Integration/Commands/Resume-SqlDscDatabase.Integration.Tests.ps1'
345346
'tests/Integration/Commands/Suspend-SqlDscDatabase.Integration.Tests.ps1'
346347
'tests/Integration/Commands/Get-SqlDscCompatibilityLevel.Integration.Tests.ps1'

0 commit comments

Comments
 (0)