Skip to content

Instantly share code, notes, and snippets.

@ShakataGaNai
Created November 22, 2017 17:28
Show Gist options
  • Save ShakataGaNai/139d8b04ab5f1ad01d7a485e68f6d8e8 to your computer and use it in GitHub Desktop.
Save ShakataGaNai/139d8b04ab5f1ad01d7a485e68f6d8e8 to your computer and use it in GitHub Desktop.
Mackup & Keybase powered CLI Backup
#!/bin/bash
DIR="$( cd "$( dirname "$0" )" && pwd )"
mackup backup -f
cd $DIR
git add --all
git commit -m "automated backup `date`"
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment