Forum Discussion

p_geormas's avatar
p_geormas
Level 4
13 years ago
Solved

Backup with Netbackup 7.1 postgreSQL

Hi,

     What is the proper way to backup postgreSQL with Netbackup 7.1?

     Backup Server

    Windows 2008 R2 x64 with Netbackup 7.1.0.3

    PostgreSQL Server

    2 servers Red Hat Enterprise Linux 6.2 x86_64 that running on clustering Red Hat mode on a storage shared GFS2 partition

    PostgreSQL Version: 9.1

 

 

Thanks,

  • As there, to my knowledge, is no NBU agent available for PostgreSQL, you have following options;

    * Offline backup: Pre-backup scripts shuts down the DB, back up the file systems, post-backup scripts starts the DB

    * Online backup: Cron script/Pre-backup script use pg_dump to dump the DB to local staging area, back up staging area, post-backup script cleans up staging area

    * Online, inconsistent backup: Back up the file systems with DB online (inconsistent), back up the archived WAL files (requires the DB to use write-ahead logs). Recover DB by restoring file systems and the replay the WAL.

    A few years ago I did a study in how to build a solution similar to the one that exist for MySQL in order to provide online backup directly to a storage unit (no staging area required). The result; It is doable...

     

    /A

  • Is there any Symantec Documentation for these options that are describing the steps in detail? 

  • I would personally start with PostgreSQL documentation to see what they recommend for backups.

    If you can tell us how PostgreSQL backup is done, we can help with the NBU part.