Start-VBORepositoryOwnerChangeSession
Short Description
Creates and starts a change owner session to move a backup repository to another backup proxy server or backup proxy pool.
Syntax
This cmdlet provides the following parameter sets:
-
ProxyParameterSetStart-VBORepositoryOwnerChangeSession -Repository <VBORepository> [-Proxy <VBOProxy>]
[-WaitForSessionsTimeoutMinutes <Int32>] [-ForceStopSessions] [-ForceStopSessionsTimeoutMinutes <Int32>]
[-IgnoreConnectionTroublesToSourceLocation] [-Force] [<CommonParameters>]
-
PoolParameterSetStart-VBORepositoryOwnerChangeSession -Repository <VBORepository> [-Pool <VBOProxyPool>]
[-WaitForSessionsTimeoutMinutes <Int32>] [-ForceStopSessions] [-ForceStopSessionsTimeoutMinutes <Int32>]
[-IgnoreConnectionTroublesToSourceLocation] [-Force] [<CommonParameters>]
Detailed Description
This cmdlet creates and starts a session when Veeam Backup for Microsoft 365 moves a backup repository to another backup proxy server or backup proxy pool.
Note |
|
Starting many change owner sessions may overload the NATS server resulting session failures. To prevent this, use the |
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Force |
Defines that the cmdlet will start a session without showing warnings in the PowerShell console. If you do not provide the parameter, the cmdlet will prompt you to confirm the operation. Default: False |
|
False |
Named |
False |
|
ForceStopSessions |
Defines action that Veeam Backup for Microsoft 365 will perform if the related sessions exceed the
Default: False |
|
False |
Named |
False |
|
ForceStopSessionsTimeoutMinutes |
For the Specifies a timeout in minutes. The cmdlet will use this timeout to wait for the related sessions to stop after Veeam Backup for Microsoft 365 forced them to stop. Default: 10 |
|
False |
Named |
False |
|
IgnoreConnectionTroublesToSourceLocation |
Defines that the cmdlet will ignore the Offline status of a source backup proxy server. Default: False |
|
False |
Named |
False |
|
Pool |
Specifies a backup proxy pool. The cmdlet will move an object storage repository to this backup proxy pool.
Accepts the
To get this object, run the |
False |
Named |
False |
|
|
Proxy |
Specifies a backup proxy server. The cmdlet will move a backup repository or an object storage repository to this backup proxy server.
Accepts the
To get this object, run the |
False |
Named |
False |
|
|
Repository |
Specifies a backup repository or an object storage repository. The cmdlet will create and start a change owner session for this backup repository or object storage repository.
Accepts the
To get this object, run the |
True |
Named |
False |
|
|
WaitForSessionsTimeoutMinutes |
Specifies a timeout in minutes. The cmdlet will use this timeout to wait for the related sessions to finish before starting the current session. Related sessions are the sessions that Veeam Backup for Microsoft 365 creates to perform different activities, such as data backup and backup copy, data management, data restore and data retrieval. Default: 60 |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About Common Parameters section of Microsoft Learn.
Output Object
The cmdlet returns the VBORepositoriesOwnerChangeSession object that contains details on a session when Veeam Backup for Microsoft 365 moves a backup repository to another backup proxy server or backup proxy pool.
Examples
Starting Change Owner Session
This example shows how to start a change owner session to move the Azure Backup object storage repository to the Pool1 backup proxy pool.
|
$repository = Get-VBORepository -Name "Azure Backup" $pool = Get-VBOProxyPool -Name "Pool1" Start-VBORepositoryOwnerChangeSession -Repository $repository -Pool $pool -ForceStopSessions |
Perform the following steps:
- Run the
Get-VBORepositoryReturns backup repositories. cmdlet. Specify theNameparameter value. Save the result to the$repositoryvariable. - Run the
Get-VBOProxyPoolReturns backup proxy pools added to the Veeam Backup for Microsoft 365 infrastructure. cmdlet. Specify theNameparameter value. Save the result to the$poolvariable. - Run the
Start-VBORepositoryOwnerChangeSessioncmdlet. Set the$repositoryvariable as theRepositoryparameter value. Set the$poolvariable as thePoolparameter value. Provide theForceStopSessionsparameter.
Related Commands
Get-VBORepositoryReturns backup repositories.Get-VBOProxyPoolReturns backup proxy pools added to the Veeam Backup for Microsoft 365 infrastructure.Get-VBOProxyReturns backup proxy servers added to the Veeam Backup for Microsoft 365 infrastructure.