From 8fb860c4200e4a59eee541b10ceb6ff3570ac175 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Fri, 30 Sep 2016 12:44:31 -0400 Subject: [PATCH] adding a script for archiving our trac repository. --- scripts/archival/backup_trac.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 scripts/archival/backup_trac.sh 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 + + -- 2.34.1