Skip to content

Instantly share code, notes, and snippets.

@rafabarzotto
Created June 1, 2017 11:12
Show Gist options
  • Save rafabarzotto/2ff5a9474e020f75c441c81956c26109 to your computer and use it in GitHub Desktop.
Save rafabarzotto/2ff5a9474e020f75c441c81956c26109 to your computer and use it in GitHub Desktop.
Criar banco e restaurar dump do e-SUS
export PGPASSWORD=esus; /usr/bin/createdb -E UTF8 -T template0 -p 5432 -U postgres esus
/usr/bin/pg_restore -p 5432 -U postgres -Fc -j 4 -d esus -O /home/opt/dump.backup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment