diff --git a/README.md b/README.md index 78344f5..34e88d3 100644 --- a/README.md +++ b/README.md @@ -20,13 +20,13 @@ dokku plugins-install ``` postgres:alias Set an alias for the docker link -postgres:clone NOT IMPLEMENTED +postgres:clone Create container then copy data from into postgres:connect Connect via psql to a postgres service postgres:create Create a postgres service postgres:destroy Delete the service and stop its container if there are no links left postgres:export Export a dump of the postgres service database postgres:expose [port] Expose a postgres service on custom port if provided (random port otherwise) -postgres:import NOT IMPLEMENTED +postgres:import < Import a dump into the postgres service database postgres:info Print the connection information postgres:link Link the postgres service to the app postgres:list List all postgres services @@ -85,11 +85,15 @@ dokku postgres:unlink lolipop playground dokku postgres:logs lolipop dokku postgres:logs lolipop -t # to tail +# you can dump the database +dokku postgres:export lolipop > lolipop.dump + +# you can import a dump +dokku postgres:import lolipop < database.dump + +# you can clone an existing database to a new one +dokku postgres:clone lolipop new_database + # finally, you can destroy the container dokku postgres:destroy lolipop ``` - -## todo - -- implement postgres:clone -- implement postgres:import