Backup Gitlab

Yang pertama kita lakukan dulu backup di /etc/backup :

sh -c 'umask 0077; tar -cf $(date "+etc-gitlab-%s.tar") -C /etc/gitlab'

Kemudian backup gitlab.yml hasil konfigurasi kita :

sh -c 'umask 0077; tar -cf $(date "+var-opt-gitlab-rails-etc-%s.tar") -C /var/opt/gitlab/gitlab-rails/etc/'

Kemudian backup repositori keseluruhan

gitlab-rake gitlab:backup:create

Lanjut ke langkah restore ke server lain
Share on Google Plus

About Unknown

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment