[or-cvs] r19750: {torflow} Fix cron script to save backups of scan results. (torflow/trunk/NetworkScanners/BwAuthority)
mikeperry at seul.org
mikeperry at seul.org
Sun Jun 21 02:43:55 UTC 2009
Author: mikeperry
Date: 2009-06-20 22:43:55 -0400 (Sat, 20 Jun 2009)
New Revision: 19750
Modified:
torflow/trunk/NetworkScanners/BwAuthority/cron.sh
Log:
Fix cron script to save backups of scan results.
Modified: torflow/trunk/NetworkScanners/BwAuthority/cron.sh
===================================================================
--- torflow/trunk/NetworkScanners/BwAuthority/cron.sh 2009-06-20 12:23:00 UTC (rev 19749)
+++ torflow/trunk/NetworkScanners/BwAuthority/cron.sh 2009-06-21 02:43:55 UTC (rev 19750)
@@ -1,10 +1,12 @@
#!/bin/sh
+TIMESTAMP=`date +%Y%m%d-%H%M`
SCANNER_DIR=~/code/torflow-trunk/NetworkScanners/BwAuthority
TOR_DEST=$SCANNER_DIR/bwscan.V3BandwidthsFile
+OUTPUT=$SCANNER_DIR/data/bwscan.${TIMESTAMP}
cd $SCANNER_DIR # Needed for import to work properly.
-$SCANNER_DIR/aggregate.py $SCANNER_DIR/data $SCANNER_DIR/data/bwscan.all
+$SCANNER_DIR/aggregate.py $SCANNER_DIR/data $OUTPUT
-cp $SCANNER_DIR/data/bwscan.all $TOR_DEST
-#scp $SCANNER_DIR/data/bwscan.all tor at authority.org:/var/lib/tor/V3Bandwidths
+cp $OUTPUT $TOR_DEST
+#scp $OUTPUT tor at authority.org:/var/lib/tor/V3Bandwidths
More information about the tor-commits
mailing list