Created
February 25, 2015 20:14
-
-
Save HERRKIN/04ab30630902a8a7ef29 to your computer and use it in GitHub Desktop.
backup file
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/sh | |
DATE=`/bin/date +%d-%m-%Y-%H:%M:%S` | |
export PGUSER=user | |
export PGPASSWORD=password | |
pg_dump -Fc -b database > /home/saecosoft/Dropbox/pgbackup/respaldo-$DATE.backup | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment