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
#!/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 |