[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit ad424311980e22d49b4e99aa00fa1c5c584adfe2
Author: Arlo Breault <arlolra@xxxxxxxxx>
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); \



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits