updated to support a path for the archive locatin.
authorChris Koeritz <fred@gruntose.com>
Fri, 30 Sep 2016 16:56:47 +0000 (12:56 -0400)
committerChris Koeritz <fred@gruntose.com>
Fri, 30 Sep 2016 16:56:47 +0000 (12:56 -0400)
infobase/configuration/cron/backup_trac.crontab
scripts/archival/backup_trac.sh

index 9f1f9450b1b3585d9ffb3f547987552b15a57633..c7967aaba41973f3e3a5f87ab4ef87a3782af5d6 100644 (file)
@@ -2,7 +2,7 @@
 
 
 # backs up trac every week.
-28 7 * * 2 bash $HOME/feisty_meow/scripts/archival/backup_trac.sh /home/trac
+28 7 * * 2 bash $HOME/feisty_meow/scripts/archival/backup_trac.sh /home/trac /z/stuffing/archives
 
 
 
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