How to create multiple path backupjob using BEMCLI
Created: 14 May 2012 | Updated: 20 Nov 2012 | 3 comments
This issue has been solved. See solution.
In BE 2012, I want to create a backup job including multiple path using BEMCLI.
I tried the following steps.
BEMCLI>Get-BEBackupDefinition -Name "2K8R2 Backup00001"| Export-BEBackupDefinition > .\ExportedBackup01.ps1
BEMCLI>$p = New-BEFileSystemSelection -Path "D:\DataA\*"
BEMCLI>.\ExportedBackup01.ps1 2K8R2 -FileSystemSelection $p | Save-BEBackupDefinition
At that job, I want to specify the multiple path like "D:\DataA\*;D:\DataB\*" instead of "D:\DataA\*", but it doesn't work.
How to create multiple path job?
Thank you.
Discussion Filed Under:
Comments 3 Comments • Jump to latest comment
To quote the help for the filesystemselection parameter of the Set-BEBackupDefinition Cmdlet
Thanks pkh,
I could create the backupjob what I want!
I really appreciated your help.
FYI
I did the following way last time.
$p = New-BEFileSystemSelection -Path "D:\DataA\*"
.\ExportedBackup01.ps1 2K8R2 -FileSystemSelection $p | Set-BEBackupDefinition -FileSytemSelection ”D:\DataB\*,D:\DataC\*” | Save-BEBackupDefinition
I found another way.
$p = @()
$p +=New-BEFileSystemSelection -Path "D:\DataA\*"
$p +=New-BEFileSystemSelection -Path "D:\DataB\*"
$p +=New-BEFileSystemSelection -Path "D:\DataB\*"
Would you like to reply?
Login or Register to post your comment.