Skip to content

Instantly share code, notes, and snippets.

@lorello
Last active April 17, 2020 17:25
Show Gist options
  • Select an option

  • Save lorello/a57a8c9467952d46680080408c586982 to your computer and use it in GitHub Desktop.

Select an option

Save lorello/a57a8c9467952d46680080408c586982 to your computer and use it in GitHub Desktop.
pgdump for a list of db
#!/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