High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
docs: changes to docker compose command. (#4828)
Jesbin330f4cadda1c
diff --git a/docs/docs/administration/backup-and-restore.md b/docs/docs/administration/backup-and-restore.mdindex bfea5aa3ce..da9e271b57 100644--- a/docs/docs/administration/backup-and-restore.md+++ b/docs/docs/administration/backup-and-restore.md@@ -17,13 +17,13 @@ docker exec -t immich_postgres pg_dumpall -c -U postgres | gzip > "/path/to/back``````bash title='Restore'-docker-compose down -v # CAUTION! Deletes all Immich data to start from scratch.-docker-compose pull # Update to latest version of Immich (if desired)-docker-compose create # Create Docker containers for Immich apps without running them.+docker compose down -v # CAUTION! Deletes all Immich data to start from scratch.+docker compose pull # Update to latest version of Immich (if desired)+docker compose create # Create Docker containers for Immich apps without running them.docker start immich_postgres # Start Postgres serversleep 10 # Wait for Postgres server to start upgunzip < "/path/to/backup/dump.sql.gz" | docker exec -i immich_postgres psql -U postgres -d immich # Restore Backup-docker-compose up -d # Start remainder of Immich apps+docker compose up -d # Start remainder of Immich apps```Note that for the database restore to proceed properly, it requires a completely fresh install (i.e. the Immich server has never run since creating the Docker containers). If the Immich app has run, Postgres conflicts may be encountered upon database restoration (relation already exists, violated foreign key constraints, multiple primary keys, etc.).