updated to support a path for the archive locatin.
[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 archive_path="$1"; shift
7
8 if [ -z "$trac_path" -o -z "$archive_path" ]; then
9   echo This script needs the path to the trac database as the first parameter
10   echo and the path to the storage directory as the second parameter.
11   exit 1
12 fi
13
14 sep='_'
15
16 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
17
18