Skip to content

Instantly share code, notes, and snippets.

View VGostyuzhov's full-sized avatar

Valentin Gostyuzhov VGostyuzhov

View GitHub Profile
@VGostyuzhov
VGostyuzhov / git-backup-to-AWS-S3.sh
Created December 17, 2018 15:27 — forked from philippb/git-backup-to-AWS-S3.sh
Complete git repository backup script to AWS S3
#!/bin/bash
# Script to backup git repo to S3
# Set bucket, dir, password and account to use for the backup. I keep mine in local env vars
# These are set by localrc which lives on an encrypted home directory and is executed by my bashrc
bucket=$GITHUB_BACKUP_BUCKET
dir=$GITHUB_BACKUP_DIR
password=$GITHUB_BACKUP_PASSWORD
account=$GITHUB_ACCOUNT