X-Git-Url: http://git.tpope.net/?p=tpope-extra.git;a=blobdiff_plain;f=bin%2Fcritical-backup;fp=bin%2Fcritical-backup;h=d47970d7ba6e69c27d4cae305d4910bb78dc5a2b;hp=0000000000000000000000000000000000000000;hb=2bdaa7ec002da2b8f6c96089ed5c9c81d8dd4194;hpb=deb5077783ff39fea9f1712cbfb3c1380ab0a4c8 diff --git a/bin/critical-backup b/bin/critical-backup new file mode 100755 index 0000000..d47970d --- /dev/null +++ b/bin/critical-backup @@ -0,0 +1,30 @@ +#!/bin/sh +# Author: Tim Pope +# -*- sh -*- vim: ft=sh sw=4 sts=4 + +PATH="$HOME/bin:/usr/local/bin:/usr/bin:/bin" +ARCHIVE="tpope-`date +%Y-%m-%d`.tar.gpg" + +exec >/dev/null 2>&1 mysqldump.sql + +tar chf - tpope.tar cvs mysqldump.sql |\ +gpg -qez 9 -r A356C8D546EEFD2C --batch --no-tty > $ARCHIVE +#gpg -qcz 9 --batch --no-tty --passphrase-fd 3 > $ARCHIVE 3</var/www/tpope.tar.gz +cd .. +rm -rf /tmp/.critical-$LOGNAME-$$