Skip to content

Instantly share code, notes, and snippets.

@davidray
Created August 7, 2010 19:31
Show Gist options
  • Select an option

  • Save davidray/513102 to your computer and use it in GitHub Desktop.

Select an option

Save davidray/513102 to your computer and use it in GitHub Desktop.
Dump Users
pg_dump -a -t authorities -t users -t granted_authorities -U hibuser hibernate > avr_users.sql
Restore Users
First edit the avr_users.sql file to remove the default users, roles, and granted authorities.
psql -U hibuser hibernate < avr_users.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment