The directory inside the mounted folder to copy backups to Use ‘.’ to store them in the root directory gitlab_rails[‘backup_upload_remote_directory’] = ‘gitlab_backups’
备份档案权限
# In /etc/gitlab/gitlab.rb, for omnibus packages gitlab_rails['backup_archive_permissions'] = 0644# Makes the backup archives world-readable 备份配置文件 针对(Omnibus)备份:/etc/gitlab/gitlab.rb 、/etc/gitlab/gitlab-secrets.json 添加定时备份 每天凌晨两点备份 02 * * * /opt/gitlab/bin/gitlab-rake gitlab:backup:create CRON=1 保留备份30天,单位秒 gitlab_rails['backup_keep_time'] = 2592000