Archiving Bitbucket Server repositories to S3 or GCS

A quick script example using “git bundle” to help archive git repositories to AWS Glacier or GCS Coldline storage.

Bitbucket Server is organised into projects each of which contains multiple repositories. Now let’s take an example of an organisation migrating tens of thousands of repositories away from their hosted Bitbucket Server set up.