X-Git-Url: https://code.communitydata.science/covid19.git/blobdiff_plain/141871eda6754b95f1617e354fe1d9728d0fd8e1..95d37cff7aa215b9c411e863f7d1ba702de61405:/cron-wikipedia_views.sh?ds=sidebyside diff --git a/cron-wikipedia_views.sh b/cron-wikipedia_views.sh index ec3d4ec..3611657 100644 --- a/cron-wikipedia_views.sh +++ b/cron-wikipedia_views.sh @@ -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}) -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 -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/