You can use the HPCA Personality Backup and Restore command line interface to backup and restore files and settings for a managed device.
The syntax is as follows:
<InstallDir>\Agent\pbr.exe /B|/R [/localstore] [/hardlink]
Option | Description |
---|---|
/B
|
Perform a backup. |
/R
|
Perform a restore. |
/localstore
|
Store the backup files on (or restore them from) the local hard drive of the managed device instead of the HPCA Core server. |
/hardlink
|
For USMT 4.0 (included in the Windows 7 AIK), do not physically copy the backup files to the OSMGR.PRESERVE directory. Instead, create hard links to the files. This significantly saves backup space, because the backed up files are not duplicated. It also speeds up the backup and restore operations.
If /hardlink is specified, /localstore is implied.
When the /hardlink option is used, the target (restore) OS must be Windows Vista or Windows 7. The source (backup) OS, however, can be Windows XP SP2 or later.
For USMT 3.0.1, this option is ignored. In this case, /hardlink is treated like /localstore .
|
/xml
|
Select xml files from HPCA Core Server using wildcards. This option can be used when you perform a backup. |
/--
|
Use this option to pass additional parameters for USMT utilities. The additional parameters are appended to the command line as set up by Personality Backup and Restore. |
Example 1: Backup your files and settings on the HPCA Core server
<InstallDir>\Agent\pbr.exe /B
Example 2: Restore from the HPCA Core server
<InstallDir>\Agent\pbr.exe /R
Example 3: Backup your files and settings locally
<InstallDir>\Agent\pbr.exe /B /localstore
Example 4: Restore after a local backup
<InstallDir>\Agent\pbr.exe /R /localstore
Example 5: Perform a local backup using hard links
<InstallDir>\Agent\pbr.exe /B /hardlink
This example is valid for the following operating systems: Windows XP SP2, Windows XP SP3, Windows Vista, and Windows 7.
Example 6: Perform a local restore using hard links
<InstallDir>\Agent\pbr.exe /R /hardlink
This example is valid for the following operating systems: Windows Vista and Windows 7.
Example 7: Select xml files from HPCA Core Server using wildcards
<InstallDir>\Agent\pbr.exe /B /xml myconfig*.xml
Example 8: Set log level for the USMT utilities ScanState and LoadState
<InstallDir>\Agent\pbr.exe /R /-- /v:4