Forum Discussion

ylo's avatar
ylo
Level 3
10 years ago

BE2014 + NDMP + Powershell

Hi, I would like to use the new feature in BackupExec 2014 for using Powershell and NDMP. I follow the example avalaible in the Help as follow:    C:\PS> $x = New-BENdmpNetAppServerSel...
  • VJware's avatar
    10 years ago

    Try this syntax instead:-

    $x=New-BENdmpNetAppServerSelection -Volume "/vol/vol1" -Path "/testfolder" -Recurse:$true

    New-BEBackupDefinition -BackupJobDefault BackupToDisk | Add-BEBackupSelection -AgentServer NetAppServer -Selection $y | Save-BEBackupDefinition

     

  • ylo's avatar
    10 years ago

    Yes it work now :-)

    with this correct commande:

     

    $x=New-BENdmpNetAppServerSelection -Volume "/vol/vol1" -Path "/testfolder" -Recurse:$true

    New-BEBackupDefinition -BackupJobDefault BackupToDisk | Add-BEBackupSelection -AgentServer NetAppServer -Selection $x | Save-BEBackupDefinition

    (the X not the Y, you was right we miss it ;- and with dns name it works no need to use IP)

    Can you tell your collegue that they have to correct the help file ?

    Anyway thanks for your help, very usefull.

     

    Best Regards


    Yann