You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: functions/Get-DbaBackupInformation.ps1
+37-5Lines changed: 37 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,10 @@ function Get-DbaBackupInformation {
57
57
.PARAMETERMaintenanceSolution
58
58
This switch tells the function that the folder is the root of a Ola Hallengren backup folder
59
59
60
+
.PARAMETERRestoreTime
61
+
This parameter ONLY works with the MaintenanceSolution switch
62
+
If both are specified we will pre filter the files before reading the headers. This is not guaranteed to always work if you've moved files, or they contain multiple backups or you've altered any of the default naming rules in Ola's scripts
63
+
60
64
.PARAMETERIgnoreLogBackup
61
65
This switch only works with the MaintenanceSolution switch. With an Ola Hallengren style backup we can be sure that the LOG folder contains only log backups and skip it.
62
66
For all other scenarios we need to read the file headers to be sure.
@@ -126,7 +130,7 @@ function Get-DbaBackupInformation {
126
130
127
131
As we know we are dealing with an Ola Hallengren style backup folder from the MaintenanceSolution switch, when IgnoreLogBackup is also included we can ignore the LOG folder to skip any scanning of log backups. Note this also means then WON'T be restored
Copy file name to clipboardExpand all lines: functions/Restore-DbaDatabase.ps1
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,7 @@ function Restore-DbaDatabase {
68
68
69
69
.PARAMETERMaintenanceSolutionBackup
70
70
Switch to indicate the backup files are in a folder structure as created by Ola Hallengreen's maintenance scripts.
71
-
This swith enables a faster check for suitable backups. Other options require all files to be read first to ensure we have an anchoring full backup. Because we can rely on specific locations for backups performed with OlaHallengren's backup solution, we can rely on file locations.
71
+
This switch enables a faster check for suitable backups. Other options require all files to be read first to ensure we have an anchoring full backup. Because we can rely on specific locations for backups performed with OlaHallengren's backup solution, we can rely on file locations.
72
72
73
73
.PARAMETERFileMapping
74
74
A hashtable that can be used to move specific files to a location.
@@ -285,6 +285,10 @@ function Restore-DbaDatabase {
285
285
If server\instance1 is Enterprise edition this will be done online, if not it will be performed offline
286
286
AllowContinue is required to make sure we cope with existing files
Filters the backups fould in c:\backups\db1 down to those created withing the last 2 days based on the standard Maintenance Solution naming convention of yyMMdd_hhmmss
288
292
.NOTES
289
293
Tags: DisasterRecovery, Backup, Restore
290
294
Author: Stuart Moore (@napalmgram), stuart-moore.com
@@ -538,7 +542,7 @@ function Restore-DbaDatabase {
538
542
}
539
543
}
540
544
Write-Message-Level Verbose -Message "Unverified input, full scans - $($files-join';')"
0 commit comments