Add-RMBackup
From PowerGUI Wiki
Registers a backup in the Recovery Manager database.
Contents |
Syntax
Add-RMBackup [-InputObject] <PSObject[]> [<CommonParameters>]
Detailed Description
Registers specified backup in the Recovery Manager database. Use the -InputObject parameter to specify the backup to register.
Related Commands
Parameters
| Name | Description | Required? | Pipeline Input | Default Value |
|---|---|---|---|---|
| InputObject | Accepts a backup object as input to the cmdlet. Enter a variable that contains the objects or type a command or expression that gets the objects. | true | true (ByValue) |
Examples
Example
$b = Get-ChildItem C:\Backups –Filter *.bkf –Recurse | Get-RMBackupContent
C:\PS>Where-Object –InputObject $b { $_.Contents –band 64 } | Add-RMBackup
This command gets the content of all backups held in the C:\Backups folder and its subfolders, and saves the content in the $b variable. The Where-Object cmdlet then passes the Active Directory backup objects (the number 64 stands for the Active Directory component) to the Add-RMBackup cmdlet, which registers the backup objects in the Recovery Manager database.
