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

arlo at torproject.org arlo at torproject.org
Fri Mar 27 21:10:49 UTC 2015


commit ad424311980e22d49b4e99aa00fa1c5c584adfe2
Author: Arlo Breault <arlolra at gmail.com>
Date:   Fri Mar 27 12:56:52 2015 -0700

    Purge old data
---
 Makefile |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/Makefile b/Makefile
index 0b2d255..bf23366 100644
--- a/Makefile
+++ b/Makefile
@@ -22,6 +22,7 @@ data/exit-lists/: data/
 
 data/consensus: data/consensuses/
 	@echo "Getting latest consensus documents"
+	@find data/consensuses -mtime +31 | xargs rm -f
 	@pushd data/consensuses/; \
 		wget -r -nH -nd -nc --no-parent --reject "index.html*" \
 			$(collector_url)$(consensuses_dir); \
@@ -30,6 +31,7 @@ data/consensus: data/consensuses/
 
 data/exit-addresses: data/exit-lists/
 	@echo "Getting latest exit lists"
+	@find data/exit-lists -mtime +31 | xargs rm -f
 	@pushd data/exit-lists/; \
 		wget -r -nH -nd -nc --no-parent --reject "index.html*" \
 			$(collector_url)$(exit_lists_dir); \
@@ -38,6 +40,7 @@ data/exit-addresses: data/exit-lists/
 
 descriptors: data/descriptors/
 	@echo "Getting latest descriptors (This may take a while)"
+	@find data/descriptors -mtime +31 | xargs rm -f
 	@pushd data/descriptors/; \
 		wget -r -nH -nd -nc --no-parent --reject "index.html*" \
 			$(collector_url)$(descriptors_dir); \





More information about the tor-commits mailing list