Created
May 23, 2014 20:15
-
-
Save cyriac/31dbb186fad3337874e7 to your computer and use it in GitHub Desktop.
Gitlab 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
0 2 * * * cd /home/git/gitlab && PATH=/usr/local/bin:/usr/bin:/bin bundle exec rake gitlab:backup:create RAILS_ENV=production | |
0 4 * * * s3cmd sync --skip-existing --delete-removed /home/git/gitlab/tmp/backups/ s3://<backup-bucket-name>/gitlab/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Works nicely!
GitLab suggests you run the initial command as the
git
user (assuming you've installed per their instructions). This works for me: