From: Chris Koeritz Date: Fri, 30 Sep 2016 16:44:31 +0000 (-0400) Subject: adding a script for archiving our trac repository. X-Git-Tag: 2.140.90~417 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=8fb860c4200e4a59eee541b10ceb6ff3570ac175;p=feisty_meow.git adding a script for archiving our trac repository. --- diff --git a/scripts/archival/backup_trac.sh b/scripts/archival/backup_trac.sh new file mode 100755 index 00000000..950c7c9b --- /dev/null +++ b/scripts/archival/backup_trac.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +# backs up our trac repository. + +trac_path="$1"; shift + +if [ -z "$trac_path" ]; then + echo This script needs the path to the trac database. + exit 1 +fi + +sep='_' + +tar -czf /z/stuffing/archives/trac_bkup_$(date +"%Y$sep%m$sep%d$sep%H%M$sep%S" | tr -d '/\n/').tar.gz "$trac_path" &>$TMP/zz_backup_trac.log + +