Skip to content

Instantly share code, notes, and snippets.

@cyriac
Created August 22, 2014 13:28
Show Gist options
  • Save cyriac/c0ab9620ae183d0b4d8c to your computer and use it in GitHub Desktop.
Save cyriac/c0ab9620ae183d0b4d8c to your computer and use it in GitHub Desktop.
Gitlab Omnibus backup to Amazon S3
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/
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