Set-VBRLinux
Short Description
Modifies settings of a Linux server added to the backup infrastructure.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides the following parameter sets:
-
Credentials (Default)Set-VBRLinux -Server <CHost> [-Description <String>] [-SSHPort <Int32>] [-Credentials <CCredentials>]
[-SSHFingerprint <String>] [-Package <VBRLinuxPackage[]>] [-Force] [<CommonParameters>]
-
AddCredentialsSet-VBRLinux -Server <CHost> [-Description <String>] -SSHUser <String> -SSHPassword <String> [-SSHPort <Int32>]
[-SSHElevateToRoot] [-SSHAddToSudoers] [-SSHFailoverToSu] [-SSHRootPassword <String>] [-SSHTempCredentials]
[-SSHFingerprint <String>] [-Package <VBRLinuxPackage[]>] [-Force] [<CommonParameters>]
-
UseCertificateSet-VBRLinux -Server <CHost> [-Description <String>] [-SSHPort <Int32>] [-UseCertificate]
[-HandshakeCode <String>] [-Package <VBRLinuxPackage[]>] [-Force] [<CommonParameters>]
Detailed Description
This cmdlet modifies settings of a Linux server added to the backup infrastructure.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Credentials |
Specifies the credentials you want to use for authenticating with the Linux server. |
|
False |
Named |
False |
|
Description |
Specifies the description of the Linux server. |
|
False |
Named |
False |
|
Force |
Defines that the cmdlet will modify settings of Linux server without showing warnings in the PowerShell console. |
|
False |
Named |
False |
|
HandshakeCode |
Specifies the handshake code used to pair with the server. |
|
False |
Named |
False |
|
Package |
Specifies the Linux package.
Accepts the |
False |
Named |
False |
|
|
Server |
Specifies a Linux server which settings that you want to modify.
Accepts the |
|
True |
Named |
True (ByPropertyName, ByValue) |
|
SSHAddToSudoers |
Defines that the user account is added to sudoers file.
Default: (if the |
|
False |
Named |
False |
|
SSHElevateToRoot |
Defines that non-root users are provided with the root account privileges.
Default: |
|
False |
Named |
False |
|
SSHFailoverToSu |
Defines that Veeam Backup & Replication will use the su command if the sudo command fails. If you provide this parameter, Veeam Backup & Replication will failover to the su command if sudo command fails. Otherwise, if sudo fails Veeam Backup & Replication will not be able to add Linux credentials records.
Default: |
|
False |
Named |
False |
|
SSHFingerprint |
Specifies SSH host fingerprint. |
|
False |
Named |
False |
|
SSHPassword |
Specifies the password you want to use for authenticating with the Linux server. |
|
True |
Named |
False |
|
SSHPort |
Specifies the SSH port for connection to the Linux server.
Default: |
|
False |
Named |
False |
|
SSHRootPassword |
Specifies the root password to be used for authentication. |
|
False |
Named |
False |
|
SSHTempCredentials |
Defines that the cmdlet will use the temporary credentials to connect to Linux server.
Default: |
|
False |
Named |
False |
|
SSHUser |
Specifies the user name you want to use for authenticating with the Linux server. |
|
True |
Named |
False |
|
UseCertificate |
Defines if certificate-based authentication is used. |
|
True |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
The cmdlet returns the CHost object that contains settings of a Linux server added to the backup infrastructure.
Examples
Modifying Linux Server Settings
This example shows how to set the SSH port to 2222.
|
$server = Get-VBRServer Set-VBRLinux -Server $server -SSHPort 2222 |
Perform the following steps:
- Run the
Get-VBRServerReturns hosts connected to the backup infrastructure. cmdlet. Save the result to the$servervariable. - Run the
Set-VBRLinuxcmdlet. Set the$servervariable as theServerparameter value. Specify theSSHPortparameter value.
Related Commands
Get-VBRServerReturns hosts connected to the backup infrastructure.