github.com/Redstoneguy129/cli@v0.0.0-20230211220159-15dca4e91917/internal/db/dump/templates/dump_data.sh (about) 1 #!/usr/bin/env bash 2 set -euo pipefail 3 4 # Explanation of pg_dump flags: 5 # 6 # --exclude-schema omit data from internal schemas as they are maintained by platform 7 # --schema '*' include all other schemas by default 8 pg_dump \ 9 --data-only \ 10 --column-inserts \ 11 --quote-all-identifier \ 12 --exclude-schema "$EXCLUDED_SCHEMAS" \ 13 --schema '*' \ 14 --dbname "$DB_URL" 15 16 # Reset session config generated by pg_dump 17 echo "RESET ALL;"