The Advanced Continuous Historian > Backup and restore the Advanced Continuous Historian

Restore Advanced Continuous Historian backups

Use this procedure to restore Advanced Continuous Historian data from a backup.

The steps in this procedure assume the backup files are stored in the D:\ACHBackup directory. Substitute your location in place of D:\ACHBackup.

  1. Open a command prompt window and change directory to C:\Program Files\PI\adm.
  2. Type pisrvstop.bat at the command prompt.
  3. Copy all files in the D:\ACHBackup\dat folder to the C:\Program Files\PI\dat folder excluding the following files, if they exist:
    • pisubsys.cfg

    • PISysID.dat

    • Archive files

  4. Copy all files in the D:\ACHBackup \adm folder to the C:\Program Files\PI\adm folder.
  5. Copy all files in the D:\ ACHBackup\bin folder to the C:\Program Files\PI\bin folder.
  6. Copy all files in the D:\ ACHBackup\log folder to the C:\Program Files\PI\log folder.
  7. Delete all archives and annotation files that currently exist in D:\PI\Archives.
  8. Copy archives and annotation files from D:\ ACHBackup\arc folder to D:\PI\Archives folder.
  9. Update archive location file (piarstat.dat).
    1. Open a command prompt window and change to the C:\Program Files\PI\adm directory.
    2. Type pidiag -ar in the command prompt window.
    3. When prompted, enter the full path of the primary archive copied over from the backup directory (for example, D:\PI\Archives\archive_name.arc).
    4. Type Y to confirm the archive name.
    5. Type Y to proceed with the recovery.
  10. Start the Advanced Continuous Historian.
    1. Open a command prompt window and change to the C:\Program Files\PI\adm directory.
    2. Type pisrvstart.bat in the command prompt window.