opendistro-for-elasticsearch / opendistro-build

🧰 Open Distro Build Scripts
https://opendistro.github.io/
Apache License 2.0
344 stars 175 forks source link

Add backup-repos script for backing up all the code in GitHub to S3 #691

Closed camerski closed 3 years ago

camerski commented 3 years ago

This is a quick-and-dirty tool to make sure we have backups. There is no fault tolerance, and it must be run as a user with SSH access to GitHub and IAM access to the bucket being written to. If we end up needing a more long-term tool then we can add better fault tolerance and security config.

Test Results: Manually tested. Results are in the github.com.opendistro-for-elasticsearch.backup bucket. Manually verified that I can download and unpack a backup, and that it contains the complete git repository including all branches and history.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on signing off your commits, please check here.