Update docs/maintenance-postgres.md: copy from the MASH playbook

Copied from 802032cda7/docs/services/postgres.md

Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
This commit is contained in:
Suguru Hirahara 2025-02-25 23:06:47 +09:00
parent fe72de7dc5
commit f57ee8d3e0
No known key found for this signature in database
GPG Key ID: E4F9743DAB4B7B75

View File

@ -5,7 +5,7 @@ SPDX-FileCopyrightText: 2020 Hardy Erlinger
SPDX-FileCopyrightText: 2021 - 2024 MDAD project contributors SPDX-FileCopyrightText: 2021 - 2024 MDAD project contributors
SPDX-FileCopyrightText: 2021 Marc Leuser SPDX-FileCopyrightText: 2021 Marc Leuser
SPDX-FileCopyrightText: 2024 Kim Brose SPDX-FileCopyrightText: 2024 Kim Brose
SPDX-FileCopyrightText: 2024 Suguru Hirahara SPDX-FileCopyrightText: 2024 - 2025 Suguru Hirahara
SPDX-License-Identifier: AGPL-3.0-or-later SPDX-License-Identifier: AGPL-3.0-or-later
--> -->
@ -23,7 +23,7 @@ Table of contents:
## Getting a database terminal ## Getting a database terminal
You can use the `/matrix/postgres/bin/cli` tool to get interactive terminal access ([psql](https://www.postgresql.org/docs/11/app-psql.html)) to the PostgreSQL server. You can use the `/matrix/postgres/bin/cli` tool to get interactive terminal access ([psql](https://www.postgresql.org/docs/current/app-psql.html)) to the PostgreSQL server.
If you are using an [external Postgres server](configuring-playbook-external-postgres.md), the above tool will not be available. If you are using an [external Postgres server](configuring-playbook-external-postgres.md), the above tool will not be available.
@ -59,9 +59,9 @@ Example playbook invocations:
## Backing up PostgreSQL ## Backing up PostgreSQL
To automatically make Postgres database backups on a fixed schedule, see [Setting up Postgres backup](configuring-playbook-postgres-backup.md). To automatically make Postgres database backups on a fixed schedule, consider enabling the [Postgres Backup](configuring-playbook-postgres-backup.md) service.
To make a one off back up of the current PostgreSQL database, make sure it's running and then execute a command like this on the server: To make a one-off back up of the current PostgreSQL database, make sure it's running and then execute a command like this on the server:
```sh ```sh
/usr/bin/docker exec \ /usr/bin/docker exec \