From: Benjamin Mako Hill Date: Wed, 1 Apr 2020 20:49:02 +0000 (-0500) Subject: change copy to move in cron scripts X-Git-Url: https://code.communitydata.science/covid19.git/commitdiff_plain/95d37cff7aa215b9c411e863f7d1ba702de61405?hp=--cc change copy to move in cron scripts --- 95d37cff7aa215b9c411e863f7d1ba702de61405 diff --git a/cron-wikipedia_revisions.sh b/cron-wikipedia_revisions.sh index 71ee752..a53bc3f 100644 --- a/cron-wikipedia_revisions.sh +++ b/cron-wikipedia_revisions.sh @@ -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 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/