The following sections describe how you can view information about disaster recovery plan files stored on a target server and view their contents. It also describes how to direct the contents of a disaster recovery plan file to another file and how to delete volume history records of the recovery plan files.
You can display information about recovery plan files from the server that created the files (the source server) or from the server on which the files are stored (the target server):
query rpfile devclass=* source=dbsnapshot
You can also issue the QUERY VOLHISTORY command to display a list of recovery plan files for the source server. Specify recovery plan files that were created assuming either full plus incremental database backups (TYPE=RPFILE) or database snapshot backups (TYPE=RPFSNAPSHOT). For example:
query volhistory type=rpfile
query rpfile nodename=*
From the server that created the recovery plan file (the source server) or from the server on which the file is stored (the target server), you can display the contents of that file that was saved as on object on the target server. For example,
query rpfcontent marketing.20000901.043900 devclass=targetclass
query rpfcontent marketing.20000831.045000 nodename=branch8
Notes:
See The Disaster Recovery Plan File for an example of the contents of a recovery plan file.
To restore a recovery plan file, use the QUERY RPFCONTENT command and direct the output to a file. You can issue the command from the server that created the files (the source server) or from the server on which the files are stored (the target server). To see a list of recovery plan file names, issue the QUERY RPFILE command.
For example, a recovery plan file named marketing.20000831.045000 was created using the device class of TARGETCLASS and on a source server whose node name at the target server is BRANCH8. You want to restore the file and direct the output to rpf.out:
query rpfcontent marketing.20000831.045000 devclass=targetclass > rpf.out
query rpfcontent marketing.20000831.045000 nodename=branch8 > rpf.out
To display a list of recovery plan files, use the QUERY RPFILE command. See Displaying Information about Recovery Plan Files for more information.
You can set DRM to expire recovery plan files a certain number of days after they are created. To set up expiration, issue the SET DRMRPFEXPIREDAYS command. The default value is 60 days. For example, to change the time to 90 days, enter:
set drmrpfexpiredays 90
All recovery plan files that meet the criteria are eligible for expiration if both of the following conditions exist:
Expiration applies to plan files based on both full plus incremental and snapshot database backups.
You can delete volume history records containing information about recovery plan file objects. When the records are deleted from the source server and the grace period is reached, the objects are deleted from the target server.
Note: | The record for the latest recovery plan file is not deleted. |
For example, to delete records for recovery plan files that were created on or before 08/30/2000 and assuming full plus incremental database backup series, enter:
delete volhistory type=rpfile todate=08/30/2000To limit the operation to recovery plan files that were created assuming database snapshot backups, specify TYPE=RPFSNAPSHOT.