mirror of
https://github.com/immich-app/immich.git
synced 2025-01-21 00:52:43 -05:00
Specify PowerShell for win backup/restore (#9262)
Update backup-and-restore.md
This commit is contained in:
parent
48b490f5e9
commit
dc4f7bef69
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
||||
<Tabs>
|
||||
<TabItem value="Linux system based Backup" label="Linux system based Backup" default>
|
||||
<TabItem value="Linux system" label="Linux system" default>
|
||||
|
||||
```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
|
|||
```
|
||||
|
||||
</TabItem>
|
||||
<TabItem value="Windows system based Backup" label="Windows system based Backup">
|
||||
<TabItem value="Windows system (PowerShell)" label="Windows system (PowerShell)">
|
||||
|
||||
```powershell title='Backup'
|
||||
docker exec -t immich_postgres pg_dumpall --clean --if-exists --username=postgres > "\path\to\backup\dump.sql"
|
||||
|
|
Loading…
Add table
Reference in a new issue