Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to use AWS S3 to backup all GIT repositories?

I am currently working on a project where I need to backup all our Git projects/repos. We are working with AWS, so I am wondering if S3 could be used. Can this be done? Google searches only provide half and answer and technique as to how to.

like image 879
user3013325 Avatar asked Oct 21 '25 12:10

user3013325


1 Answers

You can script a backup solution in any language, and then schedule the task on an EC2 instance.

The task would:

  1. Clone the repo locally
  2. Tar/zip the repo
  3. Copy to an S3 bucket.

Here is an example: https://gist.github.com/philippb/1988919

like image 163
Rodrigo Murillo Avatar answered Oct 23 '25 02:10

Rodrigo Murillo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!