Skip to content

Commit

Permalink
chore(docs): encode db dump in UTF-8 without BOM for Windows (#13775)
Browse files Browse the repository at this point in the history
  • Loading branch information
amorphobia authored Nov 13, 2024
1 parent e1feba2 commit ecb8349
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 @@ -58,7 +58,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 ecb8349

Please sign in to comment.