Skip to content

Instantly share code, notes, and snippets.

@jcsalterego
Forked from defunkt/backup.rb
Created May 6, 2009 20:19
Show Gist options
  • Save jcsalterego/107717 to your computer and use it in GitHub Desktop.
Save jcsalterego/107717 to your computer and use it in GitHub Desktop.
#!/bin/sh
# first you'll want to create a gist then `git clone` the private url
# second you'll want to run this script in the gist's directory
while [ 1 ]; do
git commit -a -m save && git push origin master;
sleep $(echo "60 * 4" | bc);
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment