From b3c7ba9436bf49a6eba5355888179d5950eca403 Mon Sep 17 00:00:00 2001 From: Matthew Momjian <50788000+mmomjian@users.noreply.github.com> Date: Sat, 4 May 2024 16:13:32 -0400 Subject: [PATCH] Update backup-and-restore.md --- docs/docs/administration/backup-and-restore.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/administration/backup-and-restore.md b/docs/docs/administration/backup-and-restore.md index ab9dcec830f48..4334bb0227763 100644 --- a/docs/docs/administration/backup-and-restore.md +++ b/docs/docs/administration/backup-and-restore.md @@ -18,7 +18,7 @@ Refer to the official [postgres documentation](https://www.postgresql.org/docs/c The recommended way to backup and restore the Immich database is to use the `pg_dumpall` command. When restoring, you need to delete the `DB_DATA_LOCATION` folder (if it exists) to reset the database. - + ```bash title='Backup' docker exec -t immich_postgres pg_dumpall --clean --if-exists --username=postgres | gzip > "/path/to/backup/dump.sql.gz" @@ -38,7 +38,7 @@ docker compose up -d # Start remainder of Immich apps ``` - + ```powershell title='Backup' docker exec -t immich_postgres pg_dumpall --clean --if-exists --username=postgres > "\path\to\backup\dump.sql"