-
Notifications
You must be signed in to change notification settings - Fork 0
/
SQLAutoRestores.psm1
42 lines (38 loc) · 1.71 KB
/
SQLAutoRestores.psm1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Push-Location
Import-Module SqlPS -DisableNameChecking
Pop-Location
. $PSScriptRoot\Functions\function-Get-BottomFolders.ps1
. $PSScriptRoot\Functions\function-Get-DBBackupObject.ps1
. $PSScriptRoot\Functions\function-Get-FileRestoreMove.ps1
. $PSScriptRoot\Functions\function-Get-PointInTime.ps1
. $PSScriptRoot\Functions\function-Get-RandomElement.ps1
. $PSScriptRoot\Functions\function-Get-RestoreSet.ps1
. $PSScriptRoot\Functions\function-New-BackupObject.ps1
. $PSScriptRoot\Functions\function-New-SQLConnection.ps1
. $PSScriptRoot\Functions\function-Remove-Database.ps1
. $PSScriptRoot\Functions\function-Restore-Database.ps1
. $PSScriptRoot\Functions\function-Restore-SQLBackupHeader.ps1
. $PSScriptRoot\Functions\function-Test-BackupObject.ps1
. $PSScriptRoot\Functions\function-Test-Database.ps1
. $PSScriptRoot\Functions\function-Test-DatabaseVersion.ps1
. $PSScriptRoot\Functions\function-Test-RestoreSpace.ps1
. $PSScriptRoot\Functions\function-Test-DBBackupsExist.ps1
. $PSScriptRoot\Functions\function-Test-DatabaseExists.ps1
Export-ModuleMember
Export-ModuleMember Get-BottomFolders
Export-ModuleMember Get-DBBackupObject
Export-ModuleMember Get-FileRestoreMove
Export-ModuleMember Get-RandomElement
Export-ModuleMember Get-RestoreSet
Export-ModuleMember Remove-Database
Export-ModuleMember Restore-Database
Export-ModuleMember Test-Database
Export-ModuleMember Test-DatabaseExists
Export-ModuleMember Test-DatabaseVersion
Export-ModuleMember Test-RestoreSpace
Export-ModuleMember Restore-SQLBackupHeader
Export-ModuleMember Test-BackupObject
Export-ModuleMember New-BackupObject
Export-ModuleMember Get-PointInTime
Export-ModuleMember New-SQLConnection
Export-ModuleMember Test-DBBackupsExist