Last active
April 17, 2020 17:25
-
-
Save lorello/a57a8c9467952d46680080408c586982 to your computer and use it in GitHub Desktop.
pgdump for a list of db
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
| #!/bin/bash | |
| DB_LIST='sdc | |
| sdc_bugliano | |
| sdc_ala | |
| sdc_treville' | |
| for DB in $DB_LIST; do | |
| pg_dump $DB > $DB.sql | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment