New-VEMDBLinuxCredentials
Short Description
Creates Linux credential record to connect to a target MongoDB server.
Applies to
Veeam Backup & Replication
Product Edition: Enterprise Plus, Veeam Universal License
Syntax
New-VEMDBLinuxCredentials [-Account] <String> [-AddToSudoers <SwitchParameter>] [-ElevateAccountToRoot <SwitchParameter>] [-Passphrase <SecureString>] [-Password <SecureString>] [-PrivateKeyFilePath <String>] [-RootPassword <SecureString>] [-UseSuIfSudoUnavailable <SwitchParameter>] [<CommonParameters>] |
Detailed Description
This cmdlet creates a Linux credential record. You can use this credential record to connect to the target Linux machine with MongoDB. Note that the user must have root privileges on the target server.
Run the Start-VEMDBRestoreJob cmdlet to restore MongoDB collections to the primary node of a MongoDB replica set or restore the entire instance to a target Linux machine with MongoDB.
Parameters
Parameter | Description | Type | Required | Position | Accept Pipeline Input |
---|---|---|---|---|---|
Account | Specifies the user name of the account that will be used to connect to the target Linux server. | String | True | 0 | False |
AddToSudoers | Defines that the cmdlet will add the account to the sudoers file. | SwitchParameter | False | Named | False |
ElevateAccountToRoot | Defines that the account must be elevated to root. | SwitchParameter | False | Named | False |
Passphrase | Specifies a passphrase. The cmdlet will use that passphrase to connect to the target Linux server. | SecureString | False | Named | False |
Password | Specifies a password that will be used to connect to the target Linux server. | SecureString | False | Named | False |
PrivateKeyFilePath | Specifies the path for the private key. The cmdlet will use that key to connect to the target Linux server. | String | False | Named | False |
RootPassword | Specifies the root password. | SecureString | False | Named | False |
UseSuIfSudoUnavailable | Defines that the su command is used instead of the sudo command. | SwitchParameter | False | Named | False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.
Output Object
The cmdlet returns the VEMDBLinuxCredentials object that contains a Linux credential record.
Examples
Example 1. Creating Linux Credential Record With Password
This example shows how to create a Linux credential record with the password authentication method. Veeam Explorer for MongoDB will use these credentials to connect to the target Linux machine.
Perform the following steps:
|
Example 2. Creating Linux Credential Record With Private Key
This example shows how to create a Linux credential record with the private key authentication method. Veeam Explorer for MongoDB will use these credentials to connect to the target Linux machine.
Perform the following steps:
Save the result to the $credentials variable to use it with other cmdlets. |
Related Commands