[tor-commits] [check/master] Purge old data

arlo at torproject.org arlo at torproject.org
Mon Dec 9 06:41:35 UTC 2013


commit f4f102e3e3d6f065910f2388b3bf87bd753de2e9
Author: Arlo Breault <arlolra at gmail.com>
Date:   Sun Dec 8 22:39:27 2013 -0800

    Purge old data
    
    48hrs should be sufficient.
---
 scripts/cpexits.sh |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/scripts/cpexits.sh b/scripts/cpexits.sh
index fb9da8e..c4d3f42 100755
--- a/scripts/cpexits.sh
+++ b/scripts/cpexits.sh
@@ -5,8 +5,12 @@ TORDATA=/srv/tor
 DNSEL=/srv/tordnsel.torproject.org/state
 NOW=$(date +"%Y-%m-%d-%H-%M-%S")
 
+find $CHECK/data/exit-lists -type f -mtime +1 -delete
 cat $DNSEL/exit-addresses $DNSEL/exit-addresses.new > $CHECK/data/exit-lists/$NOW
+
+find $CHECK/data/consensuses -type f -mtime +1 -delete
 cp $TORDATA/cached-consensus $CHECK/data/consensuses/$NOW-consensus
+
 cat $TORDATA/cached-descriptors $TORDATA/cached-descriptors.new > $CHECK/data/cached-descriptors
 
 cd $CHECK





More information about the tor-commits mailing list