Created
August 22, 2014 13:28
-
-
Save cyriac/c0ab9620ae183d0b4d8c to your computer and use it in GitHub Desktop.
Gitlab Omnibus backup to Amazon S3
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
gitlab-rake gitlab:backup:create | |
find /var/opt/gitlab/backups -mtime +7 -exec rm {} \; | |
s3cmd sync --skip-existing --delete-removed /var/opt/gitlab/backups/ s3://<s3-bucket-name>/gitlab/backups/ |
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
0 4 * * * /root/gitlab-omnibus-backup.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment