-
-
Save ismarsantos/e171bec1f1b856abea7c9bd527bf9897 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
mkdir ~/pg_backup/ | |
sudo -u postgres pg_dump test > pg_dump | |
tar -cvf ~/pg_dump.tar ~/pg_dump | |
rm -rf ~/pg_dump | |
#https://github.com/andreafabrizi/Dropbox-Uploader | |
~/dropbox_uploader.sh upload ~/pg_dump.tar /pg_dump.tar | |
rm ~/pg_dump.tar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment