Skip to content

Take backups of your Bitbucket repositories on AWS S3.

Notifications You must be signed in to change notification settings

jaason435/bitbucket-backups-s3

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bitbucket Backups

Take backups of your Bitbucket repositories on AWS S3.

Feel free to read about this with some more details on Medium.

DockerHub Badge

Installation - For Kubernetes

Set the right environment variables in the secrets file.

kubectl apply -f kubernetes/

Terraform

Use the examples in /terraform to get started with setting up a lambda function and then scheduling it using a cloudwatch event rules.

Lambda

Change the memory_size depending on the size of the repo's you're backing up (Lambda prices depend on memory).

This project uses credstash (https://github.com/fugue/credstash)

Follow the setup and add credstash entries for the username and password for BitBucket.

Then in the lambda file, update the CREDSTASH_ACCOUNTNAME & CREDSTASH_ACCOUNTPASSWORD to point to the key names of what you saved.

Event Bridge

Update the schedule_expression rate to match how often you want this to run.

Notes:

Run the following to update dependencies before uploading to Lambda pip3 install -t vendor -r aws_requirements.txt

About

Take backups of your Bitbucket repositories on AWS S3.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 49.3%
  • Python 46.1%
  • Shell 2.4%
  • Dockerfile 2.2%