Created
February 6, 2016 18:40
-
-
Save jahands/4b819c3993e45ed9617c to your computer and use it in GitHub Desktop.
My 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 | |
PATH=$PATH:/usr/local/bin | |
H=/home/git | |
GOGS=$H/gogs | |
# run postgres dump | |
docker exec gogs-postgres pg_dump -U gogs -Fc gogs -f /var/pgbackup/gogs.dump | |
sleep 600 | |
hb backup \ | |
-c /home/git/hb \ | |
-D1g \ | |
-t gogit.io \ | |
-B1m \ | |
$GOGS/pgbackup \ | |
$GOGS/gogs/conf \ | |
$GOGS/gogs/data/avatars \ | |
$GOGS/git/gogs-repositories \ | |
$H/drone |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment