Skip to content

Instantly share code, notes, and snippets.

@ku
ku / git-backup-to-AWS-S3.sh
Last active December 27, 2016 08:05 — forked from philippb/git-backup-to-AWS-S3.sh
Complete git repository backup script to AWS S3 with aws command
#!/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=$S3_BACKUP_BUCKET
dest=$S3_DIR
dir=$GITHUB_BACKUP_DIR
account=$GITHUB_ACCOUNT