Created
February 13, 2022 02:58
-
-
Save ZeroICQ/7e319710f3914dd3a1751ca630372492 to your computer and use it in GitHub Desktop.
This file contains 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 | |
export PGPASSWORD="password" | |
today=$(date +"%Y%m%d") | |
pg_dump -vvv -h localhost -p 15432 -U user db_name > dumps/dump_${today}_local.sql | |
printf "wrote to %s\n" dumps/dump_${today}_local.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment