3 # backs up our trac repository.
6 archive_path="$1"; shift
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.
16 tar -czf "${archive_path}/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