Skip to content

Commit

Permalink
docs: backup restore - add warning to not backup DB_DATA_LOCATION (im…
Browse files Browse the repository at this point in the history
…mich-app#9353)

backup restore add warning for backing up folder
  • Loading branch information
mmomjian authored May 9, 2024
1 parent f340786 commit 13a6271
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/docs/administration/backup-and-restore.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ 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.

:::caution
It is not recommended to directly backup the `DB_DATA_LOCATION` folder. Doing so while the database is running can lead to a corrupted backup that cannot be restored.
:::

<Tabs>
<TabItem value="Linux system" label="Linux system" default>

Expand Down

0 comments on commit 13a6271

Please sign in to comment.