selfhostblocks/modules/blocks/postgresql/docs/default.md
2024-11-12 21:25:36 +01:00

1.1 KiB

PostgreSQL Block

Defined in /modules/blocks/postgresql.nix.

This block sets up a PostgreSQL database.

Tests

Specific integration tests are defined in /test/blocks/postgresql.nix.

Database Backup Requester Contracts

This block can be backed up using the database backup contract.

Contract integration tests are defined in /test/contracts/databasebackup.nix.

Backing up All Databases

{
  my.backup.provider."postgresql" = {
    request = config.shb.postgresql.databasebackup;

    settings = {
      // Specific options for the backup provider.
    };
  };
}

Options Reference

id-prefix: blocks-postgresql-options-
list-id: selfhostblocks-block-postgresql-options
source: @OPTIONS_JSON@