Skip to content

Commit 163bc91

Browse files
julien-nobletRealOrangeOne
authored andcommitted
Add pgautoupgrade as psql provider
1 parent 207898f commit 163bc91

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ A script to automatically back up all databases running under docker on a host,
77
## Supported databases
88

99
- MySQL (including MariaDB and LSIO's MariaDB)
10-
- PostgreSQL (including [TimescaleDB](https://www.timescale.com/), [pgvecto.rs](https://github.com/tensorchord/pgvecto.rs), [pgvector](https://github.com/pgvector/pgvector), and Nextcloud's [AIO](https://github.com/nextcloud/all-in-one))
10+
- PostgreSQL (including [TimescaleDB](https://www.timescale.com/), [pgvecto.rs](https://github.com/tensorchord/pgvecto.rs), [pgvector](https://github.com/pgvector/pgvector), Nextcloud's [AIO](https://github.com/nextcloud/all-in-one) and [pgautoupgrade](https://github.com/pgautoupgrade/docker-pgautoupgrade))
1111
- Redis
1212

1313
## Installation

db-auto-backup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ def backup_redis(container: Container) -> str:
136136
"nextcloud/aio-postgresql",
137137
"timescale/timescaledb",
138138
"pgvector/pgvector",
139+
"pgautoupgrade/pgautoupgrade",
139140
],
140141
backup_method=backup_psql,
141142
file_extension="sql",

tests/tests.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ def test_uptime_kuma_success_hook_url(monkeypatch: Any) -> None:
103103
("lscr.io/linuxserver/mariadb:latest", "linuxserver/mariadb"),
104104
("docker.io/library/postgres:14-alpine", "postgres"),
105105
("library/postgres:14-alpine", "postgres"),
106+
("pgautoupgrade/pgautoupgrade:15-alpine", "pgautoupgrade/pgautoupgrade"),
106107
],
107108
)
108109
def test_get_container_names(tag: str, name: str) -> None:
@@ -121,6 +122,7 @@ def test_get_container_names(tag: str, name: str) -> None:
121122
("tensorchord/pgvecto-rs", "postgres"),
122123
("nextcloud/aio-postgresql", "postgres"),
123124
("redis", "redis"),
125+
("pgautoupgrade/pgautoupgrade", "postgres"),
124126
],
125127
)
126128
def test_get_backup_provider(container_name: str, name: str) -> None:

0 commit comments

Comments
 (0)