Specify S3 prefix for backup bucket

Hello, I’ve successfully setup backing up to a S3 bucket on AWS. However, there doesn’t appear to be a way to specify the prefix. Is there an easy way to do this in the gitlab.rb config file?

Your question is unclear. Do you mean, “how do I configure my S3 backups so they they have a folder-key” (e.g., “Backups”). That is, are you trying to make it so that your backups goto s3://mybackupbucket/Backups/ rather than simply s3://mybackupbucket/?

If so, I can’t (currently) answer how to do it from the gitlab.rb. I’ve simply been adding DIRECTORY=Dir/Path to my cron’ed rake job (e.g. gitlab-rake gitlab:backup:create DIRECTORY="Backups/Daily" CRON=1).