Skip to main content

Copy-LXCABackup

Use this cmdlet to copy a Lenovo XClarity Administrator backup from the local repository to a remote share, copy a backup from a remote share to the local repository, or to move a backup from the local repository to a remote share.

Note
You cannot pipe objects to this cmdlet.

Syntax

Copy-LXCABackup [-Connection LXCAConnection] 
-Uuid String
-ToLocalRepository
[CommonParameter]

Copy-LXCABackup [-Connection LXCAConnection]
-Uuid String
-SharedLocation String
[-Move]
[CommonParameter]

Parameters

-Connection LXCAConnection
Specifies the connection to the Lenovo XClarity Administrator server. If no connection is specified, the result from the last Connect-LXCA cmdlet is used.
-Uuid String
Specifies the UUID of the backup to copy to the specified destination.
-ToLocalRepository String
Specifies the local repository to use as the backup destination.
-SharedLocation String
Specifies the location to save the backup. The location must be the mount point for a remote share that is configured in the XClarity Administrator instance.
-Move
If specified, the backup is copied to the shared location and the original copy is deleted.

If not specified, the backup is copied to the shared location and the original copy is left as is.

CommonParameters
This cmdlet supports the following common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -WarningAction, -WarningVariable, -OutBuffer, -PipelineVariable, -OutVariable. For detailed information about each common parameter, see the Microsoft PowerShell Common Parameters webpage.

Results

Examples

The following example copies a backup from a shared location to the XClarity Administrator local repository.
$cred = Get-Credential
Connect-LXCA -Host "192.0.2.0" -Credential $Cred -SkipCertificateCheck

$(Copy-LXCABackup -Uuid c4e24aab-7f56-4474-99f4-a81c676df128 -ToLocalRepository)

Disconnect-LXCA
The following example move a backup from the XClarity Administrator local repository to a shared location.
$cred = Get-Credential
Connect-LXCA -Host "192.0.2.0" -Credential $Cred -SkipCertificateCheck

$result = Copy-LXCABackup -Move -Uuid c4e24aab-7f56-4474-99f4-a81c676df128 `
-SharedLocation /mnt/sharedLocation

Disconnect-LXCA