Skip to content

Commit b8eaf7d

Browse files
authored
Add support for immich's postgres container (#92)
1 parent ccb2a97 commit b8eaf7d

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ A script to automatically back up all databases running under docker on a host,
1414
- [pgvecto.rs](https://github.com/tensorchord/pgvecto.rs)
1515
- [pgvector](https://github.com/pgvector/pgvector),
1616
- Nextcloud's [AIO](https://github.com/nextcloud/all-in-one)
17-
- [pgautoupgrade](https://github.com/pgautoupgrade/docker-pgautoupgrade))
17+
- [pgautoupgrade](https://github.com/pgautoupgrade/docker-pgautoupgrade)
18+
- Immich's [Postgres VectorChord](https://ghcr.io/immich-app/postgres)
1819
- Redis
1920

2021
## Installation

db-auto-backup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ def backup_redis(container: Container) -> str:
137137
"timescale/timescaledb",
138138
"pgvector/pgvector",
139139
"pgautoupgrade/pgautoupgrade",
140+
"immich-app/postgres",
140141
],
141142
backup_method=backup_psql,
142143
file_extension="sql",

tests/tests.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ def test_uptime_kuma_success_hook_url(monkeypatch: Any) -> None:
104104
("docker.io/library/postgres:14-alpine", "postgres"),
105105
("library/postgres:14-alpine", "postgres"),
106106
("pgautoupgrade/pgautoupgrade:15-alpine", "pgautoupgrade/pgautoupgrade"),
107+
(
108+
"ghcr.io/immich-app/postgres:17-vectorchord0.3.0-pgvectors0.3.0",
109+
"immich-app/postgres",
110+
),
107111
],
108112
)
109113
def test_get_container_names(tag: str, name: str) -> None:
@@ -123,6 +127,7 @@ def test_get_container_names(tag: str, name: str) -> None:
123127
("nextcloud/aio-postgresql", "postgres"),
124128
("redis", "redis"),
125129
("pgautoupgrade/pgautoupgrade", "postgres"),
130+
("immich-app/postgres", "postgres"),
126131
],
127132
)
128133
def test_get_backup_provider(container_name: str, name: str) -> None:

0 commit comments

Comments
 (0)