buka file konfigurasi Gitlab di /etc/gitlab/gitlab.rb, hapus tanda komentar (#) dari baris berikut ini

gitlab_rails['manage_backup_path'] = true
gitlab_rails['backup_path'] = "/var/opt/gitlab/backups"
gitlab_rails['backup_keep_time'] = 604800
 
gitlab_rails['backup_upload_connection'] = {
  'provider' => 'AWS',
  'region' => 'ap-south-1',
  'aws_access_key_id' => 'ACCESS_ID',
  'aws_secret_access_key' => 'SECRET_KEY',
  'endpoint' => 'https://ap-south-1.linodeobjects.com'
}
gitlab_rails['backup_upload_remote_directory'] = 'jaranguda'
gitlab_rails['backup_multipart_chunk_size'] = 104857600

Ganti region dengan region object storage Linode. Nama bucket di backup_upload_remote_directory

Untuk melihat konfigurasi tersebut sudah benar, reload konfigurasi Gitlab

gitlab-ctl reconfigure

jalankan backup

gitlab-backup create

Backup Gitlab Harian

Buat crontab untuk membackup Gitlab harian, dengan crontab -e lalu tambahkan

@daily gitlab-backup create

Leave a comment

Your email address will not be published. Required fields are marked *