Copy-VBRLinuxGuestItem
Short Description
Copies Linux-based or Unix-based guest OS files to the target host.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Copy-VBRLinuxGuestItem -Item <VBRFLRFsItem[]> -LinuxFlrObject <VBRLinuxFlrObject> -Server <CHost> -TargetFolder <String> [-Datastore <VBRViDatastoreBase>] [-KeepPermissionsAndOwnership] [-ShareCredentials <PSCredential>] [<CommonParameters>] |
Detailed Description
This cmdlet copies Linux-based or Unix-based guest OS files to the target host. You can use the following types of servers and hosts as the target hosts:
- Microsoft Windows Server
- Linux Server
- VMware vSphere Server
- VMware Cloud Director Server
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Datastore |
Specifies the datastore where the target machine will be located. The cmdlet will copy the guest OS files to the machine located in this datastore.
Accepts the |
|
False |
Named |
False |
|
Item |
Specifies an array of files and folders that are available on disks of Linux-based or Unix-based machines. The cmdlet will copy these files and folders.
Accepts the |
|
True |
Named |
True (ByPropertyName, ByValue) |
|
KeepPermissionsAndOwnership |
Defines that the cmdlet will keep custom permissions and the ownership of the copied guest OS files. If you do not provide this parameter, the cmdlet will restore guest OS files with default permissions and ownership.
Default: |
|
False |
Named |
False |
|
LinuxFlrObject |
Specifies a restore session of Linux-based or Unix-based guest OS files. The cmdlet will use this session to copy guest OS files.
Accepts the |
|
True |
Named |
False |
|
Server |
Specifies a target machine to which you want to copy guest OS files.
Accepts the |
|
True |
Named |
False |
|
ShareCredentials |
For copying guest OS files to a shared folder. Specifies credentials that you want to use to authenticate with the target shared folder to which you copy guest OS files.
Accepts the |
|
False |
Named |
False |
|
TargetFolder |
Specifies a folder in the target machine. The cmdlet will copy the guest OS files to this folder. |
|
True |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Examples
Copying Linux-Based or Unix-Based Guest OS Files to Target Host
This example shows how to copy files from the UbuntuSrv to the LinSrv07 target machine.
|
$backup = Get-VBRBackup -Name "UbuntuSrv" $restorepoint = Get-VBRRestorePoint -Backup $backup $server = Get-VBRServer -Name "LinSrv05" $session = Start-VBRLinuxFileRestore -RestorePoint $restorepoint -MountServer $server $items = Get-VBRLinuxGuestItem -LinuxFlrObject $session $targetserver = Get-VBRServer -Name "LinSrv07" Copy-VBRLinuxGuestItem -Item $items -LinuxFlrObject $session -TargetFolder "/home/pictures" -Server $targetserver |
Perform the following steps:
- Start the restore session:
- Run the
Get-VBRBackupReturns backups. cmdlet. Specify theNameparameter value. Save the result to the$backupvariable. - Run the
Get-VBRRestorePointReturns restore points. cmdlet. Set the$backupvariable as theBackupparameter value. Save the result to the$restorepointvariable. - Run the
Get-VBRServerReturns hosts connected to the backup infrastructure. cmdlet. Specify theNameparameter value. Save the result to the$servervariable. - Run the
Start-VBRLinuxFileRestoreStarts a restore session of Linux-based or Unix-based guest OS files. cmdlet. Set the$restorepointvariable as theRestorePointparameter value. Set the$servervariable as theMountServerparameter value. Save the result to the$sessionvariable.
- Run the
- Run the
Get-VBRLinuxGuestItemReturns Linux-based or Unix-based guest OS files. cmdlet. Set the$sessionvariable as theLinuxFlrObjectparameter value. Save the result to the$itemsvariable. - Run the
Get-VBRServerReturns hosts connected to the backup infrastructure. cmdlet. Specify theNameparameter value. Save the result to the$targetservervariable. - Run the
Copy-VBRLinuxGuestItemcmdlet. Specify the following settings:- Set the
$itemsvariable as theItemparameter value. - Set the
$sessionvariable as theLinuxFlrObjectparameter value. - Specify the
TargetFolderparameter value. - Set the
$targetservervariable as theServerparameter value.
- Set the
Related Commands
Get-VBRBackupReturns backups.Get-VBRRestorePointReturns restore points.Get-VBRServerReturns hosts connected to the backup infrastructure.Get-VBRLinuxGuestItemReturns Linux-based or Unix-based guest OS files.