| Sv translation |
|---|
|
Ниже описана процедура восстановления на БД, имеющей ту же структуру каталогов, что и та, с которой была создана резервная копия. Чтобы восстановить базу данных с помощью создания новой базы данных: - Убедитесь в работоспособности БД. Проверьте существующую схему БД, сервер БД, где размещена эта схема, и компьютер, на котором работает сервер БД;
Остановите сервисы Postgre SQL: service postgresql-9.6 stop
service pgagent-9.6 stop
- Установите БД Postgre SQL согласно инструкции, приведенной в документе
«InfoWatch Traffic Monitor. Руководство по установке». - Выполните следующие шаги
:
- Удалите все содержимое каталогов /u01/postgres/, /u02/pgdata/, /u02/arch/
- Скопируйте содержимое директории /opt/IWTM_Backup_Files/postgres в директорию /u01/postgres/
- Скопируйте содержимое директории /opt/IWTM_Backup_Files/pgdata/ в директорию /u02/pgdata/
- Скопируйте содержимое директории
/opt/IWTM_Backup_Files/arch/ в директорию /u02/arch/
Проверьте права. При необходимости, измените их: chown postgres /u01/postgres/ –R
chown postgres /u02/pgdata/ –R
chown postgres /u02/arch/ –R
- Запустите базу данных:
service postgresql-9.6 start
service pgagent-9.6 start
|
| Sv translation |
|---|
|
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:
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.
Stop Postgre SQL services:
service pgagent-9.6 stop
service postrgesql-9.6 stop
Install Postgre SQL database according to «InfoWatch Traffic Monitor. Installation Guide» document.
Perform the following tasks:Delete all content of /u01/postgres/, /u02/pgdata/, /u02/arch/ directoriesCopy the content of /opt/IWTM_Backup_Files/postgres directory to /u01/postgres/ directoryCopy the content of /opt/IWTM_Backup_Files/pgdata/ directory to /u02/pgdata/ directoryCopy the content of /opt/IWTM_Backup_Files/arch/ directory to /u02/arch/ directory
Check permissions.If necessary change them:
chown postgres /u01/postgres/ –R
chown postgres /u01/pgdata/ –R
chown postgres /u01/arch/ –R
Start database:
service postrgesql-9.6 start
service pgagent-9.6 start