HELPLIB.HLB  —  RECOVER  Examples
    1.$ RECOVER/RMS_FILE/BACKWARD/LOG/UNTIL=30-JUN-1990 WEEKLY.DAT

      %RMSREC-I-FILBACKWARD, $DISK1:[PAYROLL]WEEKLY.DAT;17 rolled backward
      %RMSREC-I-DATETIME, date/time of last record processed:
                30-JUN-1990 07:41:23.27
      %RMSREC-I-NUMRECS, 936 records processed

      This command rolls the file WEEKLY.DAT backward until 30 June
      1990 (default time of day of 00:00). The Recovery Utility
      automatically uses the before-image journal that was specified
      (or implied) with the most recent SET FILE/BI_JOURNAL command
      for the file SALES.DAT. The /LOG qualifier instructs the RMS
      Recovery Utility to display the number of records processed
      (that is, undone) and the date and time that the last record
      was written.

      After this command is executed, the file WEEKLY.DAT is the same
      as it was at midnight, 30 June 1990.

    2.$ DIRECTORY/SIZE ACCOUNTS_PAYABLE.RMS$JOURNAL

       ACCOUNTS_PAYABLE.RMS$JOURNAL;1      108

      $ RECOVER/RMS_FILE/BACKWARD/BI_BUFFER_SIZE=108 ACCOUNTS_PAYABLE.DAT

      This example shows that the journal called ACCOUNTS_
      PAYABLE.RMS$JOURNAL has a size of 108 blocks. The RECOVER/RMS_
      FILE/BI_BUFFER=108 command sets the buffer to be 108 blocks.

    3.$ RECOVER/FORWARD/UNTIL=30-JUN-1990/LOG WEEKLY_BACKUP.DAT

      %RMSREC-I-FILFORWARD, $DISK1:[PAYROLL]WEEKLY_BACKUP.DAT;17 rolled
                forward
      %RMSREC-I-DATETIME, date/time of last record processed:
                30-JUN-1990 15:23:44.30
      %RMSREC-I-NUMRECS, 2554 records processed

      This command rolls the file WEEKLY_BACKUP.DAT forward,
      beginning at the time that the file was created by the Backup
      Utility. It is rolled forward until 30 June 1990 (using the
      default time of day 00:00). Using the /LOG qualifier provides
      information about the number of records processed and the date
      and time of the last record that was restored. This RECOVER
      command assumes the default qualifier /RMS_FILE.

      After this operation, the file WEEKLY_BACKUP.DAT is the same as
      the data file for which it was the backup copy (WEEKLY.DAT)
      at midnight on 30 June 1990. In order to use the restored
      file WEEKLY_BACKUP.DAT for further processing in which after-
      image journaling will take place, you must re-mark the file for
      after-image journaling.

    4.$ RECOVER/RMS_FILE/FORWARD/LOG BACKUP.DAT

      %RMSREC-I-FILFORWARD, $DISK1:[PAYROLL]BACKUP.DAT;17 rolled forward
      %RMSREC-I-DATETIME, date/time of last record processed:
                4-MAY-1990 11:28:29.74
      %RMSREC-I-NUMRECS, 3490 records processed

      This command rolls the file forward, beginning at the point
      at which the last backup was made (using the BACKUP/RECORD
      command) and continuing through the last record that was
      written to the journal. At this point, the recovered file has
      the same data as the data file on 4 May at 11:28, with the file
      characteristics of the backup file.

    5.$ RECOVER/FORWARD/JOURNAL=ARCHIVE_DISK:INVENTORY INVENTORY.BCK

      In this example, the after-image journal called ARCHIVE_
      DISK:INVENTORY.RMS$JOURNAL is applied to the file
      INVENTORY.BCK, which is a backup copy of a data file. In this
      case, ARCHIVE_DISK:INVENTORY.RMS$JOURNAL might be either a
      backup copy of a valid after-image journal, or the original
      journal itself which had been moved to a different volume. The
      /RMS_FILE qualifier is used by default.
Close Help