This is the database restoring procedure, where the directory structure is the same, as the one, where the backup was created onBelow 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 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 PostgreSQL services:
service pgagent-13 stop service postrgesql-13 stop
- Install PostgreSQL database according to the «InfoWatch Traffic Monitor. Installation Guide» document.
- Perform Take the following actionssteps:
- 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-13 start
service pgagent-13 start
|