09-25-2014 08:58 AM
Does anyone have example code on how to make changes to globally excluded selections via powershell? I am looking to make date changes.
09-25-2014 11:42 AM
Afaik, you can set file objects excludes via BEMCLI, though not other parameters such as the "Files dated".
09-25-2014 12:45 PM
You can, i.e.:
$x = New-BEFileSystemSelection -FromDate (get-date).AddDays(-14) -ToDate (Get-Date) -Path "c:\temp\*.*"
Get-BEBackupDefinition -Name 'exclude test' | Set-BEBackupDefinition -FileSystemSelection $x |
Save-BEBackupDefinition -Confirm:$false
I just don't know how to set it globally.