X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Farchival%2Fbackup_trac.sh;h=dadb6219a89d6ab9cf8d285a7f5297298c0a8cc6;hb=8b9ecb1c64d19bac9885605779e9b9b73024f75b;hp=43efc6520d4015af0141595d3ac0394c79d9356c;hpb=b11fdd1305aa42bab8648bfae7c329eb49efbce9;p=feisty_meow.git diff --git a/scripts/archival/backup_trac.sh b/scripts/archival/backup_trac.sh old mode 100755 new mode 100644 index 43efc652..dadb6219 --- a/scripts/archival/backup_trac.sh +++ b/scripts/archival/backup_trac.sh @@ -1,18 +1,13 @@ #!/bin/bash -# backs up our trac repository. +# backs up a trac repository into a tar.gz file. + +export THISDIR="$( \cd "$(\dirname "$0")" && \pwd )" # obtain the script's working directory. trac_path="$1"; shift archive_path="$1"; shift -if [ -z "$trac_path" -o -z "$archive_path" ]; then - echo This script needs the path to the trac database as the first parameter - echo and the path to the storage directory as the second parameter. - 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 +# call our arbitrary backer upper, since this is a simple single directory case. +bash $THISDIR/backup_arbitrary.sh "$trac_path" "$archive_path" "trac_bkup"