Automatic backup GitLab-projects using rsync
and notification via HipChat.
Clone the project and install depending:
$ git clone git@github.com:mgrachev/gitlab_backup.git ~/gitlab_backup
$ cd ~/gitlab_backup
$ bundle install
Rename .env.example
in .env
and edit it:
$ mv .env.example .env
Give permission to perform bin/backup
:
$ chmod +x bin/backup
Starting backup:
$ bin/backup perform -t rsync_backup -r ~/gitlab_backup
Edit config/schedule.rb
and update crontab:
$ whenever --update-crontab
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request