Skip to content

Commit

Permalink
Update backup_restore.md (#1027)
Browse files Browse the repository at this point in the history
Add information about the potential parameters modified by a .env file
Add the restart of the container
  • Loading branch information
pihomeserver authored Oct 24, 2020
1 parent f45dcd8 commit a369e51
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions website/docs/maintenance/backup_restore.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ If you get the error `No such service: database`, update your _docker-compose.ym

## Restore

:::note
Replace the default `teslamate` value below with the value defined in the .env file if you have one (TM_DB_USER and TM_DB_NAME)
:::

```bash
# Stop the teslamate container to avoid write conflicts
docker-compose stop teslamate
Expand All @@ -44,4 +48,7 @@ CREATE OR REPLACE FUNCTION public.ll_to_earth(float8, float8)

# Restore
docker-compose exec -T database psql -U teslamate -d teslamate < teslamate.bck

# Restart the teslamate container
docker-compose start teslamate
```

0 comments on commit a369e51

Please sign in to comment.