How to verifiy postgres dump correct or not?
1.Mention log file as "backup successfull" at the time of backup completed. 2.count the row count some specific table if you want to move cloud or other server need down time only for insert,update,delete statement. 3.write shell script for mail alert if pg_dump successfull or not ? su postgres "pg_dump our_database 2>> $LOG_FILE | gzip > /home/smb/shared/database_backup.bak.gz" cat $LOG_FILE | mailx $MAINTAINERS -s "Postgresql backup" LOG_FILE=/tmp/pgdump.err if ! pg_dump -U backupuser "our_database" 2> $LOG_FILE then cat $LOG_FILE | mailx 'youremailaddress' -s "Postgresql backup failure!" fi 4.pgBackRest: PostgreSQL has supported page-level checksums since 9.3. If page checksums are enabled pgBackRest will validate the checksums for every file that is copied during a backup. All page checksums are validated during a full backup and checksums in files that have changed are validated during differential a...