950c7c9b84e23e852e76566cca956f44a6b1a546
[feisty_meow.git] / scripts / archival / backup_trac.sh
1 #!/bin/bash
2
3 # backs up our trac repository.
4
5 trac_path="$1"; shift
6
7 if [ -z "$trac_path" ]; then
8   echo This script needs the path to the trac database.
9   exit 1
10 fi
11
12 sep='_'
13
14 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
15
16