fix: linting (#2353)
This commit is contained in:
parent
78de189d56
commit
59d93138d3
1 changed files with 2 additions and 0 deletions
|
@ -17,6 +17,7 @@ gunzip < /path/to/backup/dump.sql.gz | docker exec -i immich_postgres psql -U po
|
|||
```
|
||||
|
||||
The database dumps can also be automated (using [this image](https://github.com/prodrigestivill/docker-postgres-backup-local)) by editing the docker compose file to match the following:
|
||||
|
||||
```
|
||||
container_name: immich_postgres
|
||||
image: postgres:14
|
||||
|
@ -52,6 +53,7 @@ container_name: immich_postgres
|
|||
```
|
||||
|
||||
Then you can restore with the same command but pointed at the latest dump.
|
||||
|
||||
```bash title='Automated Restore'
|
||||
gunzip < db_dumps/last/immich-latest.sql.gz | docker exec -i immich_postgres psql -U postgres -d immich
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue