]> code.communitydata.science - covid19.git/blobdiff - cron-wikipedia_revisions.sh
cleaned up unnecessary files
[covid19.git] / cron-wikipedia_revisions.sh
index 71ee7527d904921601e62109f1a1126aa3da2be5..a53bc3f7009a6779c20fe86b4e55fb6d407d608b 100644 (file)
@@ -7,11 +7,11 @@ date_string=$(date +%Y%m%d)
 
 revs_log="enwp-revisions-${date_string}.log"
 ./wikipedia/scripts/fetch_enwiki_revisions.py 2> >(tee wikipedia/logs/${rev_log})
-cp wikipedia/logs/${rev_log} /var/www/covid19/wikipedia/logs/
+mv wikipedia/logs/${revs_log} /var/www/covid19/wikipedia/logs/
 
 revs_tsv="digobs_covid19-wikipedia-enwiki_revisions-${date_string}.tsv"
-cp wikipedia/data/${revs_tsv} /var/www/covid19/wikipedia
+mv wikipedia/data/${revs_tsv} /var/www/covid19/wikipedia
 
 revs_json="digobs_covid19-wikipedia-enwiki_revisions-${date_string}.json"
 xz wikipedia/data/${revs_json}
-cp wikipedia/data/${revs_json}.xz /var/www/covid19/wikipedia
+mv wikipedia/data/${revs_json}.xz /var/www/covid19/wikipedia

Community Data Science Collective || Want to submit a patch?