#!/bin/bash

set -euo pipefail

cd "$(mktemp --directory)"

echo Working directory: $(pwd)

set -x
git clone --mirror git@git.zooxlabs.com:zooxco/driving
tar -czf driving.tar.gz driving.git
aws s3 cp driving.tar.gz s3://zoox-backup/repos/driving/"$(date +"%Y_%m_%d_%I_%M_%p")".tar.gz
