Skip to content

Commit

Permalink
Update backup_restore.md (#438)
Browse files Browse the repository at this point in the history
* Update backup_restore.md

Update to solve the issue where the service could not be found, in some configurations the database is defined as 'db'.
If not configured in an explicit way the user might get a "ERROR: No such service: database" when running the command

* Update instructions

Co-authored-by: Adrian Kumpf <[email protected]>
  • Loading branch information
AlwindB and adriankumpf authored Feb 12, 2020
1 parent 5bb546e commit d12135b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/maintenance/backup_restore.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Create backup file `teslamate.bck`:
docker-compose exec database pg_dump -U teslamate teslamate > teslamate.bck
```

If you see the error `ERROR: No such service: database`, please update your _docker-compose.yml_ or use `db` instead of `database` in the above command.

## Restore

```bash
Expand Down

0 comments on commit d12135b

Please sign in to comment.