7.2 Ensure base backups are configured and functional

Information

A 'base backup' is a copy of the PRIMARY host's data cluster ($PGDATA) and is used to create STANDBY hosts and for Point In Time Recovery (PITR) mechanisms. Base backups should be copied across networks in a secure manner using an encrypted transport mechanism. The PostgreSQL CLI pg_basebackup can be used, however, SSL encryption should be enabled on the server as per section 6.8 of this benchmark. The pgBackRest tool detailed in section 8.3 of this benchmark can also be used to create a 'base backup'.


NOTE: Nessus has not performed this check. Please review the benchmark to ensure target compliance.

Solution

Executing base backups using pg_basebackup requires the following steps on the standby server:
$ whoami
postgres
$ pg_basebackup -h name_or_IP_of_master \
-p 5432 \
-U replication_user \
-D ~postgres/11/data \
-P -v -R -Xs \/

See Also

https://workbench.cisecurity.org/files/2407

Item Details

Category: CONTINGENCY PLANNING

References: 800-53|CP-10(1), CSCv6|10.2, CSCv7|10.3

Plugin: PostgreSQLDB

Control ID: cde7f6f91a7314f0e5905b73c27a1e291416359f38d863efde1eb6aa4fb46f83