Created
November 10, 2016 14:26
-
-
Save kokuyouwind/70356fafdd73cedfa94a96b0e82f4e83 to your computer and use it in GitHub Desktop.
knowledge backup script
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
#!/bin/bash | |
aws s3 sync /home/kokuyou/knowledge s3://drossel.knowledge/knowledge | |
mkdir -p /tmp/dump | |
sudo docker exec postgres pg_dumpall -U postgres > /tmp/dump/dump.sql | |
aws s3 sync /tmp/dump s3://drossel.knowledge/dump |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment