]> code.communitydata.science - covid19.git/commitdiff
change copy to move in cron scripts
authorBenjamin Mako Hill <mako@atdot.cc>
Wed, 1 Apr 2020 20:49:02 +0000 (15:49 -0500)
committerBenjamin Mako Hill <mako@atdot.cc>
Wed, 1 Apr 2020 20:49:02 +0000 (15:49 -0500)
cron-wikipedia_revisions.sh
cron-wikipedia_views.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})
 
 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"
 
 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}
 
 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
index ec3d4ec0ae1bb0dda79e33f2a7a411632d741843..361165729831f34f9e458573a0039575099d3f94 100644 (file)
@@ -8,9 +8,9 @@ date_string=$(date +%Y%m%d)
 # get the list of files
 view_log="enwp-daily_views-${date_string}.log"
 ./wikipedia/scripts/fetch_enwiki_daily_views.py 2> >(tee wikipedia/logs/${view_log})
 # get the list of files
 view_log="enwp-daily_views-${date_string}.log"
 ./wikipedia/scripts/fetch_enwiki_daily_views.py 2> >(tee wikipedia/logs/${view_log})
-cp wikipedia/logs/${view_log} /var/www/covid19/wikipedia/logs/${view_log}
-cp wikipedia/data/digobs_covid19-wikipedia-enwiki_dailyviews-${date_string}.tsv /var/www/covid19/wikipedia/
+mv wikipedia/logs/${view_log} /var/www/covid19/wikipedia/logs/${view_log}
+mv wikipedia/data/digobs_covid19-wikipedia-enwiki_dailyviews-${date_string}.tsv /var/www/covid19/wikipedia/
 
 # xz wikipedia/data/digobs_covid19-wikipedia-enwiki_dailyviews-${date_string}.json
 
 # xz wikipedia/data/digobs_covid19-wikipedia-enwiki_dailyviews-${date_string}.json
-cp wikipedia/data/digobs_covid19-wikipedia-enwiki_dailyviews-${date_string}.json /var/www/covid19/wikipedia/
+mv wikipedia/data/digobs_covid19-wikipedia-enwiki_dailyviews-${date_string}.json /var/www/covid19/wikipedia/
 
 

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