Skip to content

Instantly share code, notes, and snippets.

@graphbear
Created November 15, 2018 14:50
Show Gist options
  • Save graphbear/98f9a116857f428f0a6fe32aa7a77a69 to your computer and use it in GitHub Desktop.
Save graphbear/98f9a116857f428f0a6fe32aa7a77a69 to your computer and use it in GitHub Desktop.
# you can encrypt the whole cluster in one go
read -sp "Postgres passphrase: " PGENCRYPTIONKEY
export PGENCRYPTIONKEY=$PGENCRYPTIONKEY
initdb –data-encryption pgcrypto --data-checksums -D cryptotest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment