Skip to content

Commit

Permalink
changed restore command to code block in pgbackup.md
Browse files Browse the repository at this point in the history
  • Loading branch information
smilerz authored Nov 10, 2023
1 parent 25438d0 commit a8e3598
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/apps/pgbackup.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,6 @@ If you are using postgres docker container, add a dependency to the container
If the database already exists, drop it.
Create a database <db_name>

`docker exec -it <postgres_container> /bin/sh -c "zcat /storage/backups/postgres/last/<db_name>-latest.sql.gz | psql --username=<username> --dbname=<db_name> -W"`
```bash
docker exec -it <postgres_container> /bin/sh -c "zcat /storage/backups/postgres/last/<db_name>-latest.sql.gz | psql --username=<username> --dbname=<db_name> -W"
```

0 comments on commit a8e3598

Please sign in to comment.