guides/Hosted-Postgres.md in pgdexter-0.2.0 vs guides/Hosted-Postgres.md in pgdexter-0.2.1
- old
+ new
@@ -6,16 +6,16 @@
Linux
```sh
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
-sudo apt-get install wget ca-certificates
+sudo apt-get install -y wget ca-certificates
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
-sudo apt-get install postgresql-9.6 postgresql-server-dev-9.6
+sudo apt-get install -y postgresql-9.6 postgresql-server-dev-9.6
sudo -u postgres createuser $(whoami) -s
-sudo apt-get install ruby2.2 ruby2.2-dev
+sudo apt-get install -y ruby2.2 ruby2.2-dev
```
Mac
```sh
@@ -81,10 +81,10 @@
### Dump and restore
We recommend creating a new instance from a snapshot for the dump to avoid affecting customers.
```sh
-pg_dump -v -j 8 -Fd -f /tmp/newout.dir <connection-string>
+pg_dump -v -j 8 -Fd -f /tmp/newout.dir <connection-options>
```
Then shutdown the dump instance. Restore with:
```sh