Databases
PostgreSQL backup and restore: choose a method and verify recovery
Choose a PostgreSQL backup method based on what you need to recover. For moving one database to another server or a newer version, or restoring selected objects, `pg_dump` is flexible. For quickly copying an entire database cluster, a physical backup such as `pg_basebackup` is a better fit. A backup file’s existence does not prove that it can be restored; perform a test restore and check that required data and permissions are present.