Skip to content

Commit

Permalink
chore(docs): Encode db dump in UTF-8 without BOM for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
amorphobia committed Oct 28, 2024
1 parent f8a2bce commit 78a3e04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/administration/backup-and-restore.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ docker compose up -d # Start remainder of Immich apps
<TabItem value="Windows system (PowerShell)" label="Windows system (PowerShell)">

```powershell title='Backup'
docker exec -t immich_postgres pg_dumpall --clean --if-exists --username=postgres | Set-Content -Encoding utf8 "C:\path\to\backup\dump.sql"
[System.IO.File]::WriteAllLines("C:\absolute\path\to\backup\dump.sql", (docker exec -t immich_postgres pg_dumpall --clean --if-exists --username=postgres))
```

```powershell title='Restore'
Expand Down

0 comments on commit 78a3e04

Please sign in to comment.