Дерево страниц

Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.
Комментарий: Published by Scroll Versions from space TMAG and version 6.0
Sv translation
languageru

Ниже описана процедура восстановления на БД, имеющей ту же структуру каталогов, что и та, с которой была создана резервная копия.

Чтобы восстановить базу данных с помощью создания новой базы данных:

  1. Убедитесь в работоспособности БД. Проверьте существующую схему БД, сервер БД, где размещена эта схема, и компьютер, на котором работает сервер БД; 
  2. Остановите сервисы Postgre SQL:

    service
    pgagent
     postgresql-9.4 stop
    
    service
    postrgesql
     pgagent-9.4 stop

  3. Установите БД Postgre SQL согласно инструкции, приведенной в документе «InfoWatch Traffic Monitor. Руководство по установке».
  4. Выполните следующие шаги:
    1. Удалите все содержимое каталогов /u01/iwtm_main/, /u01/iwtm_data/ и /u01/postgres/
    2. Скопируйте содержимое директории /opt/IWTM_Backup_Files/Pgdata в директорию /u01/postgres/
    3. Скопируйте содержимое директории /opt/IWTM_Backup_Files/IWTM_main/  в директорию /u01/iwtm_main/
    4. Скопируйте содержимое директории /opt/IWTM_Backup_Files/IWTM_data/  в директорию /u01/iwtm_data/
  5. Проверьте права.
    При необходимости, измените их:

    chown postgres /u01/iwtm_
    main/ –R 
    chown postgres
    data/ –R  
    chown postgres /u01/
    iwtm_data/ –R 
    chown postgres
    postgres/ –R
    chown postgres /u01/
    postgres/ –R
    iwtm_main/ –R 

     

  6. Запустите базу данных:

    service
    postrgesql
     postgresql-9.4 start
     
     
    service pgagent-9.4 start 

 

 

Sv translation
languageen

This is the procedure of restoring to the database having the same directory structure as the one the backup was created at.

To restore the database by creating a new one:

  1. Make sure the database environment is healthy. Check the existing database, the database server that hosts the existing database, and the computer that hosts the database server.
  2. Stop Postgre SQL services:
    service pgagent-9.4 stop

    service postrgesql-9.4 stop
  3. Install Postgre SQL database according to «InfoWatch Traffic Monitor. Installation Guide» document.
  4. Perform the following tasks:
    1. Delete all content of /u01/iwtm_main/, /u01/iwtm_data/ and /u01/postgres/ directories
    2. Copy the content of /opt/IWTM_Backup_Files/Pgdata directory to /u01/postgres/ directory
    3. Copy the content of /opt/IWTM_Backup_Files/IWTM_main/ directory to /u01/iwtm_main/ directory
    4. Copy the content of /opt/IWTM_Backup_Files/IWTM_data/ directory to /u01/iwtm_data/ directory
  5. Check permissions.
    If necessary change them:
    chown postgres /u01/iwtm_main/ –R
    chown postgres /u01/iwtm_data/ –R
    chown postgres /u01/postgres/ –R
  6. Start database:
    service postrgesql-9.4 start 
    service pgagent-9.4 start