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
+41-2Lines changed: 41 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,12 @@ function Get-DbaBackupInformation {
53
53
.PARAMETERPassThru
54
54
When data is exported the cmdlet will return no other output, this switch means it will also return the normal output which can be then piped into another command
55
55
56
+
.PARAMETERMaintenanceSolution
57
+
This switch tells the function that the folder is the root of a Ola Hallengren backup folder
58
+
59
+
.PARAMETERIgnoreLogBackup
60
+
This switch only works with MaintenanceSoltion, as we can then now that all file in LOG are to be ignored.
61
+
56
62
.PARAMETERImport
57
63
When specified along with a path the command will import a previously exported
58
64
@@ -89,12 +95,20 @@ function Get-DbaBackupInformation {
89
95
This lets you keep a record of all backup history from the last month on hand to speed up refreshes
When MaintenanceSolution is indicated we know we are dealing with the output from Ola Hallengren's backup scripts. So we make sure that a FULL folder exists in the first level of Path, if not we shortcut scanning all the files as we have nothing to work with
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
0 commit comments