HP-UX Secure Resource Partitions (SRP) A.02.01 Administrator's Guide

77
Where backup_directory is an empty directory.
The srp -Backup command executes the /opt/hpsrp/util/srp_backup script. By default,
this script creates copies of the following directories, including all subdirectories and files, and stores
them under the specified backup directory:
/etc/cmpt
/etc/opt/ipf
/etc/prmconf
/etc/rbac
/etc/rc.config.d/netconf
/etc/rc.config.d/netconf-ipv6
/var/adm/ipsec/config.db
/var/hpsrp
If you use alternate configuration directories for any of the subsystems managed by SRP, you can
modify the /opt/hpsrp/util/srp_backup script to back up files from other locations.
NOTE: The srp_backup script only saves system configuration files managed by SRP. It does not
back up compartment-specific configuration files in the /var/hpsrp/compartment_name
directories.
13.9.2 The srp -Restore Command
The srp -Restore command has the following syntax:
srp -R[estore] backup_directory [restore_move_dir=<directory>]
Where backup_directory is a directory containing SRP backup data created with the srp
Backup command.
The srp -Restore command executes the /opt/hpsrp/bin/util/srp_restore script. This
script deletes the existing contents of the backed up directories and restores the backed up files. If any
new files created after backup operation need to be removed to restore the environment, the user will
be prompted to provide a directory path to move the files to. In batch mode assign this directory path
to variable restore_move_dir. If the backed files were saved using a modified
/opt/hpsrp/bin/util/srp_backup script, you must make similar modifications to the
/opt/hpsrp/bin/util/srp_restore file.