View Log Entries for a Backup

View STA server log entries for a backup.

  1. Open a terminal session on the STA server, and log in as the Oracle user.
  2. Change to the STA services log directory.
    $ cd /var/log/tbi/db/backups
    
  3. Use any of the following searches to find log entries for the backup.

    You may need to search more than one log file to find the applicable entries. Depending on the amount of log activity and when the backup was performed, entries for the backup in question may be in the current log file (staservd.log.0) or an earlier one (staservd.log.1, staservd.log.2, and so on).

    • Display all backups recorded in the staservd.log.1 log file.

      $ grep 'StaBackup' staservd.log.1 | grep 'Database dump completed'
      
    • Refine the search to display entries just for the backup in question. This example shows entries for the backup done on January 23, 2020.

      $ grep 'StaBackup' staservd.log.1 | grep 20200123
      
    • Refine the search to display the name of the host where the files for the backup in question were sent.

      $ grep 'StaBackup' staservd.log.1 | grep 20200123 | grep 'sending file'