Skip to content

Instantly share code, notes, and snippets.

@justinwhall
Created September 5, 2017 21:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinwhall/8620e4db4065926d92515561e1f9f174 to your computer and use it in GitHub Desktop.
Save justinwhall/8620e4db4065926d92515561e1f9f174 to your computer and use it in GitHub Desktop.
START=$(date +%s)
# do a bunch of backup related things
END=$(date +%s)
runtime=$(($END-$START))
echo "databases.backups.$db_prefix.full $runtime `date +%s`" | nc -w 1 $graphite_url 2003
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment