I'm trying to add a Linux server with Powershell in v6, to make it host a Backup Repository Server.
Code: Select all
# add the Linux server
$secpasswd = ConvertTo-SecureString "pass" -AsPlainText -Force
$mycreds = New-Object System.Management.Automation.PSCredential ("account", $secpasswd)
$srv=Add-VBRLinux -Name devspp -SSHUser root -SSHPassword "root_pass" -Credential $mycreds
# declare the new backup repository on the Linux server
$mntsrv=get-vbrserver | where {$_.Name -eq "This server"}
Add-VBRBackupRepository -Name "devspp_bkp_repo" -Server $srv -MountServer $mntsrv -Folder "/synerway/applishare/vmware_ultimate" -Type "LinuxLocal"
To retrieve their values, I can use "$srv.GetSSHCreds()" on a VBRServer object.
Is there a way to set those properties with the SSH credentials?
Thanx a lot.
Sorin Pop.