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

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

Ключ

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

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

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

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

    stop

    postgresql-15


    systemctl

    stop

    pgagent-15


    Установите БД PostgreSQL согласно инструкции, приведенной в документе InfoWatch Traffic Monitor. Руководство по установке.

  3. Выполните следующие шаги:
    1. Удалите все содержимое каталогов /u01/postgres/, /u02/pgdata/, /u02/pgdata1/, /u02/arch/ 
    2. Скопируйте содержимое директории /opt/IWTM_Backup_Files/postgres в директорию /u01/postgres/
    3. Скопируйте содержимое директории /opt/IWTM_Backup_Files/pgdata/  в директорию /u02/pgdata/
    4. Скопируйте содержимое директории /opt/IWTM_Backup_Files/pgdata1/  в директорию /u02/pgdata1/
    5. Скопируйте содержимое директории /opt/IWTM_Backup_Files/arch/  в директорию /u02/arch/
  4. Проверьте права. При необходимости, измените их:
    chown

    –R postgres

    /u01/postgres/

    –R chown postgres


    chown –R postgres /u02/pgdata/

    –R


    chown

    –R postgres

    /u02/pgdata1/

    –R


    chown

    –R postgres

    /u02/arch/

    –R

  5. Запустите базу данных:
    systemctl start postgresql-15
    systemctl start pgagent-15

Sv translation
languageen

Below you can find instructions on how to restore data to a database that has the same directory structure as the one that was backed up.

To restore the database by without 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 PostgreSQL services:
    systemctl stop pgagentpostgresql-15
    systemctl stop

    postrgesql

    pgagent-15


    Install PostgreSQL database according to the InfoWatch Traffic Monitor. Installation Guide document.

  3. Take the following steps:
    1. Delete all the content of of the /u01/postgres/, /u02/pgdata/, /u02/pgdata1/, /u02/arch/ directories;
    2. Copy the content of of the /opt/IWTM_Backup_Files/postgres directory to  directory to the /u01/postgres/ directory;
    3. Copy the content of the /opt/IWTM_Backup_Files/pgdata/ directory to  directory to the /u02/pgdata/ directory;
    4. Copy the content of the /opt/IWTM_Backup_Files/pgdata1/ directory to  directory to the /u02/pgdata1/ directory;
    5. Copy the content of the /opt/IWTM_Backup_Files/arch/ directory to to the /u02/arch/ directory.
  4. –R

    Check the permissions. If necessary, change them:
    chown –R postgres /u01/postgres/

     


    chown –R postgres /

    u01

    u02/pgdata/

     –R


    chown –R postgres /

    u01

    u02/pgdata1/

     –R


    chown –R postgres /

    u01

    u02/arch/

     –R

  5. Start the database:
    systemctl start postrgesqlpostgresql-15
    systemctl start pgagent-15