https://www.postgresql.org/docs/13/app-pgverifybackup.html
This feature was first introduced in PostgreSQL 13.
- Run docker-compose project:
docker-compose up
- Create database:
docker-compose exec -T postgres psql -U postgres < data.sql
- Create backup:
docker-compose exec -T postgres pg_basebackup -h localhost -U postgres -P -D /var/backup
- Verify backup:
docker-compose exec -T postgres pg_verifybackup /var/backup