Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for DB in `psql -lAt | grep -v 'eduard' | cut -d '|' -f1`; do if [ -f $DB.sql.bz2 ]; then echo "$DB already dumped"; else echo "Dumping and bziping $DB"; pg_dump $DB | bzip2 | pv > $DB.sql.bz2; fi done
Add Comment
Please, Sign In to add comment