Last active
February 13, 2020 12:55
-
-
Save kenvac/620046de8549e9bfe212d093570fa22a to your computer and use it in GitHub Desktop.
Export PG roles to new database
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Debian console command | |
$ sudo su postgres | |
$ pg_dumpall -v --globals-only -f "/path/to/useraccts.sql" | |
# Restore command | |
$ psql -h localhost -d postgres -U postgres -f "/path/to/useraccts.sql" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment