Skip to content

Instantly share code, notes, and snippets.

View SebastienGautier's full-sized avatar

Sébastien Gautier SebastienGautier

View GitHub Profile
@yyfrankyy
yyfrankyy / BackupGitlab.sh
Last active December 28, 2017 20:57
Backup Gitlab Day by day to Dropbox
#!/bin/sh
# You might want to put this script in crontab, backup day by day.
#
# $ sudo -u git -H crontab -l
# $ 0 0 1 * * /path/to/your/BackupGitlab.sh
cd /home/git/gitlab
/usr/local/bin/bundle exec rake gitlab:backup:create RAILS_ENV=production