立即与支持人员聊天
与支持团队交流

Rapid Recovery 6.9 - Commands and Scripting Reference Guide

Introduction to Rapid Recovery Command Line Management utility PowerShell module
Prerequisites for using PowerShell Working with commands and cmdlets Rapid Recovery PowerShell module cmdlets
Add-EsxAutoProtectObjects Add-EsxVirtualMachines Add-HyperVClusterSharedVirtualDisks Add-HyperVClusterVirtualMachines Add-HyperVVirtualMachines Disable-HyperVAutoProtection Edit-AzureVirtualStandby Edit-EsxiVirtualStandby Edit-HyperVVirtualStandby Edit-OracleDBVerifyNightlyJob Edit-OracleLogTruncationNightlyJob Edit-Replication Edit-ScheduledArchive Edit-VBVirtualStandby Edit-VMVirtualStandby Enable-HyperVAutoProtection Enable-OracleArchiveLogMode Get-ActiveJobs Get-CloudAccounts Get-Clusters Get-CompletedJobs Get-ExchangeMailStores Get-Failed Get-FailedJobs Get-HyperVClusterSharedVirtualDisks Get-ListAzureVMSizes Get-Mounts Get-OracleInstances Get-Passed Get-ProtectedServers Get-ProtectionGroups Get-QueuedJobs Get-RecoveryPoints Get-ReplicatedServers Get-Repositories Get-ScheduledArchives Get-SqlDatabases Get-TransferQueueEntries Get-UnprotectedVolumes Get-Version Get-VirtualizedServers Get-Volumes New-AzureVirtualStandby New-Base New-BootCD New-CloudAccount New-EncryptionKey New-EsxiVirtualStandby New-FileSearch New-HyperVVirtualStandby New-Mount New-Replication New-Repository New-ScheduledArchive New-Snapshot New-VBVirtualStandby New-VMVirtualStandby Push-Replication Push-Rollup Remove-Agent Remove-EsxAutoProtectObjects Remove-HyperVClusterSharedVirtualDisks Remove-HyperVClusterVirtualMachines Remove-HyperVVirtualMachines Remove-Mount Remove-Mounts Remove-RecoveryPoints Remove-RemoteMount Remove-RemoteMounts Remove-Replication Remove-Repository Remove-ScheduledArchive Remove-VirtualStandby Restart-CoreService Resume-Replication Resume-ScheduledArchive Resume-Snapshot Resume-VirtualStandby Set-AgentMetadataCredentials Set-DedupCacheConfiguration Set-License Set-OracleMetadataCredentials Set-ReplicationResponse Start-Archive Start-AttachabilityCheck Start-AzureDeploy Start-AzureExport Start-ChecksumCheck Start-ConsumeSeedDrive Start-CopySeedDrive Start-EsxiExport Start-HypervExport Start-LogTruncation Start-MountabilityCheck Start-OptimizationJob Start-OracleDBVerifyJob Start-OracleLogTruncationJob Start-Protect Start-ProtectCluster Start-ProtectEsxServer Start-ProtectHyperVCluster Start-ProtectHyperVServer Start-RepositoryCheck Start-RestoreAgent Start-RestoreArchive Start-ScheduledArchive Start-VBExport Start-VirtualStandby Start-VMExport Stop-ActiveJobs Stop-CoreService Suspend-Replication Suspend-ScheduledArchive Suspend-Scheduler Suspend-Snapshot Suspend-VirtualStandby Suspend-VMExport Update-Repository
Localization Qualifiers
Scripting

PreSnapshotScript.sh

The PreSnapshotScript is run on the protected Linux machine after preparation but before data is read from the original device when capturing a snapshot. This script does not receive parameters from the protected machine.

Note: For clarification on when pre and post scripts are run, see .Using Bourne shell and Bash scripting with Rapid Recovery.

The following script returns the time that the script completed on the machine in hours, minutes, and seconds, based on the system time of the Core. This information is logged in PreSnapshotScriptResult.txt, which is stored in the root home directory.

Sample PreSnapshotScript

#!/bin/bash
echo "`date +%H:%M:%S` PreSnapshot script has been executed." > ~/PreSnapshotScriptResult.txt
exit 0

PostSnapshotScript.sh

The PostSnapshotScript is run on the protected Linux machine after data is read from the original device when capturing a snapshot, but before data is read from the copied device. This script does not receive parameters from the protected machine.

Note: For clarification on when pre and post scripts are run, see .Using Bourne shell and Bash scripting with Rapid Recovery.

The following script returns the time that the script completed on the machine in hours, minutes, and seconds, based on the system time of the Core. This information is logged in PostSnapshotScriptResult.txt, which is stored in the root home directory.

Sample PostSnapshotScript

#!/bin/bash
echo "`date +%H:%M:%S` PostSnapshot script has been executed." > ~/PostSnapshotScriptResult.txt
exit 0

PostExportScript.sh

The PostExportScript is run on the exported Linux machine after the virtual export is complete. This script does not receive parameters from the protected machine.

Note: The original machine from which the VM was cloned should be powered off before starting the VM.

The following script returns the start time of the exported virtual machine in hours, minutes, and seconds, based on the system time of the Core. This information is logged in PostExportScriptResult.txt, which is stored in the root home directory.

Sample PostExportScript

#!/bin/bash
echo 
"`date +%H:%M:%S` Start time of the machine. This indicates that virtual export has been completed and machine is active." > ~/PostExportScriptResult.txt
exit 0
相关文档

The document was helpful.

选择评级

I easily found the information I needed.

选择评级