diff --git a/README.md b/README.md index e370cc2..fc04280 100644 --- a/README.md +++ b/README.md @@ -558,6 +558,12 @@ You can redirect this output to a file: dokku postgres:export lollipop > data.dump ``` +Note that the export will result in a file containing the binary postgres export data. It can be converted to plain text using `pg_restore` as follows + +```shell +pg_restore data.dump -f plain.sql. +``` + ### Backups Datastore backups are supported via AWS S3 and S3 compatible services like [minio](https://github.com/minio/minio). diff --git a/docs/export.md b/docs/export.md new file mode 100644 index 0000000..6e2eb52 --- /dev/null +++ b/docs/export.md @@ -0,0 +1,5 @@ +Note that the export will result in a file containing the binary postgres export data. It can be converted to plain text using `pg_restore` as follows + +```shell +pg_restore data.dump -f plain.sql. +```