我已經開始按照指令(https://docs.gitlab.com/ee/raketasks/backup_restore.html)將我的Gitlab數據備份到AWS S3存儲桶。到目前爲止它工作正常,但我無法將這些數據自動移動到S3存儲桶中的子文件夾(如s3:// my_gitlab_bucket_backup/NewFolder
)將Gitlab備份到S3存儲桶
目前,我執行以下更改以將備份移動到根文件夾在桶裏。
gitlab_rails['manage_backup_path'] = true
gitlab_rails['backup_path'] = "/var/opt/gitlab/backups"
gitlab_rails['backup_archive_permissions'] = 0644 # See: http://doc.gitlab.com/ce/raketasks/backup_restore.html#backup-archive-permissions
gitlab_rails['backup_pg_schema'] = 'public'
gitlab_rails['backup_keep_time'] = 604800
gitlab_rails['backup_upload_connection'] = {
'provider' => 'AWS',
'region' => 'us-east-1',
'aws_access_key_id' => 'ABCDEF',
'aws_secret_access_key' => 'XYZAL'
}
gitlab_rails['backup_upload_remote_directory'] = 'my_gitlab_bucket_backup'
任何有助於此備份移動到子文件夾中的桶,將不勝感激
這很混亂,你有沒有開始備份?你只是想將已經備份的文件移動到子文件夾? – strongjz
我必須在gitlab.rb文件中執行哪些更改,以便下次再備份時,我的備份文件將自動移至S3存儲桶中的子文件夾 –