updated to support a path for the archive locatin.
[feisty_meow.git] / scripts / archival / backup_trac.sh
index 950c7c9b84e23e852e76566cca956f44a6b1a546..43efc6520d4015af0141595d3ac0394c79d9356c 100755 (executable)
@@ -3,9 +3,11 @@
 # backs up our trac repository.
 
 trac_path="$1"; shift
+archive_path="$1"; shift
 
-if [ -z "$trac_path" ]; then
-  echo This script needs the path to the trac database.
+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