This is the procedure of restoring to the database having the same directory structure database restoring procedure, where the directory structure is the same, as the one, where the backup was created aton. 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 PostgreSQL services:
service pgagent-9.6 stop service postrgesql-9.6 stop
- Install Postgre SQL PostgreSQL database according to «InfoWatch Traffic Monitor. Installation Guide» document.
- Perform the following tasksactions:
- Delete all the content of /u01/postgres/, /u02/pgdata/, /u02/pgdata1/, /u02/arch/ directories;
- Copy the content of /opt/IWTM_Backup_Files/postgres directory to /u01/postgres/ directory;
- Copy the content of /opt/IWTM_Backup_Files/pgdata/ directory to /u02/pgdata/ directory;
- Copy the content of /opt/IWTM_Backup_Files/pgdata1/ directory to /u02/pgdata1/ directory;
- Copy the content of /opt/IWTM_Backup_Files/arch/ directory to /u02/arch/ directory.
- Check the permissions. If necessary, change them:
chown postgres /u01/postgres/ –R
chown postgres /u01/pgdata/ –R chown postgres /u01/pgdata1/ –R
chown postgres /u01/arch/ –R
- Start the database:
service postrgesql-9.6 start
service pgagent-9.6 start
|