Stefan.petrea has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/70929


Change subject: Squashed commit of the following:
......................................................................

Squashed commit of the following:

Change-Id: I4c373a1d6f28a4416564c004265f135c9452e8be
---
M dumps/bash/pageviews_monthly.sh
1 file changed, 23 insertions(+), 22 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/analytics/wikistats 
refs/changes/29/70929/1

diff --git a/dumps/bash/pageviews_monthly.sh b/dumps/bash/pageviews_monthly.sh
index 9cb4cb6..670e125 100755
--- a/dumps/bash/pageviews_monthly.sh
+++ b/dumps/bash/pageviews_monthly.sh
@@ -9,7 +9,8 @@
 report=$dumps/logs/log_pageviews_monthly.txt
 projectcounts=/a/dammit.lt/projectcounts
 # projectcounts=/home/ezachte/test/projectcounts  # tests
-htdocs=stat1001.wikimedia.org::a/srv/stats.wikimedia.org/htdocs/
+htdocs_stat1001=stat1001.wikimedia.org::a/srv/stats.wikimedia.org/htdocs/
+htdocs_stat1002=stat1002.wikimedia.org::a/srv/stats.wikimedia.org/htdocs/
 
 echo "**************************" | tee -a $report | cat
 echo "Start pageviews_monthly.sh" | tee -a $report | cat
@@ -187,33 +188,33 @@
 ls -l    $out/*/EN/TablesPageViewsMonthly.htm                               | 
tee -a $report | cat
 
 # step 3b: publish per project reports 
-echo "rsync -av $out/out_wb/EN/TablesPageViewsMonthly*.htm  
$htdocs/wikibooks/EN"   | tee -a $report | cat
-      rsync -av $out/out_wb/EN/TablesPageViewsMonthly*.htm  
$htdocs/wikibooks/EN    | tee -a $report | cat
-echo "rsync -av $out/out_wk/EN/TablesPageViewsMonthly*.htm  
$htdocs/wiktionary/EN"  | tee -a $report | cat
-      rsync -av $out/out_wk/EN/TablesPageViewsMonthly*.htm  
$htdocs/wiktionary/EN   | tee -a $report | cat
-echo "rsync -av $out/out_wn/EN/TablesPageViewsMonthly*.htm  
$htdocs/wikinews/EN"    | tee -a $report | cat
-      rsync -av $out/out_wn/EN/TablesPageViewsMonthly*.htm  
$htdocs/wikinews/EN     | tee -a $report | cat
-echo "rsync -av $out/out_wo/EN/TablesPageViewsMonthly*.htm  
$htdocs/wikivoyage/EN"  | tee -a $report | cat
-      rsync -av $out/out_wo/EN/TablesPageViewsMonthly*.htm  
$htdocs/wikivoyage/EN   | tee -a $report | cat
-echo "rsync -av $out/out_wp/EN/TablesPageViewsMonthly*.htm  $htdocs/EN"        
     | tee -a $report | cat
-      rsync -av $out/out_wp/EN/TablesPageViewsMonthly*.htm  $htdocs/EN         
     | tee -a $report | cat
-echo "rsync -av $out/out_wq/EN/TablesPageViewsMonthly*.htm  
$htdocs/wikiquote/EN"   | tee -a $report | cat
-      rsync -av $out/out_wq/EN/TablesPageViewsMonthly*.htm  
$htdocs/wikiquote/EN    | tee -a $report | cat
-echo "rsync -av $out/out_ws/EN/TablesPageViewsMonthly*.htm  
$htdocs/wikisource/EN"  | tee -a $report | cat
-      rsync -av $out/out_ws/EN/TablesPageViewsMonthly*.htm  
$htdocs/wikisource/EN   | tee -a $report | cat
-echo "rsync -av $out/out_wv/EN/TablesPageViewsMonthly*.htm  
$htdocs/wikiversity/EN" | tee -a $report | cat
-      rsync -av $out/out_wv/EN/TablesPageViewsMonthly*.htm  
$htdocs/wikiversity/EN  | tee -a $report | cat
-echo "rsync -av $out/out_wx/EN/TablesPageViewsMonthly*.htm  
$htdocs/wikispecial/EN" | tee -a $report | cat
-      rsync -av $out/out_wx/EN/TablesPageViewsMonthly*.htm  
$htdocs/wikispecial/EN  | tee -a $report | cat
+echo "rsync -av $out/out_wb/EN/TablesPageViewsMonthly*.htm  
$htdocs_stat1001/wikibooks/EN"   | tee -a $report | cat
+      rsync -av $out/out_wb/EN/TablesPageViewsMonthly*.htm  
$htdocs_stat1001/wikibooks/EN    | tee -a $report | cat
+echo "rsync -av $out/out_wk/EN/TablesPageViewsMonthly*.htm  
$htdocs_stat1001/wiktionary/EN"  | tee -a $report | cat
+      rsync -av $out/out_wk/EN/TablesPageViewsMonthly*.htm  
$htdocs_stat1001/wiktionary/EN   | tee -a $report | cat
+echo "rsync -av $out/out_wn/EN/TablesPageViewsMonthly*.htm  
$htdocs_stat1001/wikinews/EN"    | tee -a $report | cat
+      rsync -av $out/out_wn/EN/TablesPageViewsMonthly*.htm  
$htdocs_stat1001/wikinews/EN     | tee -a $report | cat
+echo "rsync -av $out/out_wo/EN/TablesPageViewsMonthly*.htm  
$htdocs_stat1001/wikivoyage/EN"  | tee -a $report | cat
+      rsync -av $out/out_wo/EN/TablesPageViewsMonthly*.htm  
$htdocs_stat1001/wikivoyage/EN   | tee -a $report | cat
+echo "rsync -av $out/out_wp/EN/TablesPageViewsMonthly*.htm  
$htdocs_stat1001/EN"             | tee -a $report | cat
+      rsync -av $out/out_wp/EN/TablesPageViewsMonthly*.htm  
$htdocs_stat1001/EN              | tee -a $report | cat
+echo "rsync -av $out/out_wq/EN/TablesPageViewsMonthly*.htm  
$htdocs_stat1001/wikiquote/EN"   | tee -a $report | cat
+      rsync -av $out/out_wq/EN/TablesPageViewsMonthly*.htm  
$htdocs_stat1001/wikiquote/EN    | tee -a $report | cat
+echo "rsync -av $out/out_ws/EN/TablesPageViewsMonthly*.htm  
$htdocs_stat1001/wikisource/EN"  | tee -a $report | cat
+      rsync -av $out/out_ws/EN/TablesPageViewsMonthly*.htm  
$htdocs_stat1001/wikisource/EN   | tee -a $report | cat
+echo "rsync -av $out/out_wv/EN/TablesPageViewsMonthly*.htm  
$htdocs_stat1001/wikiversity/EN" | tee -a $report | cat
+      rsync -av $out/out_wv/EN/TablesPageViewsMonthly*.htm  
$htdocs_stat1001/wikiversity/EN  | tee -a $report | cat
+echo "rsync -av $out/out_wx/EN/TablesPageViewsMonthly*.htm  
$htdocs_stat1001/wikispecial/EN" | tee -a $report | cat
+      rsync -av $out/out_wx/EN/TablesPageViewsMonthly*.htm  
$htdocs_stat1001/wikispecial/EN  | tee -a $report | cat
 
-      rsync -av $out/out_sp/EN/TablesPageViewsMonthlySquidsMobile.htm          
$htdocs/wikimedia/squids/TablesPageViewsMonthlySquidsMobile.htm
-      rsync -av $out/out_sp/EN/TablesPageViewsMonthlySquidsOriginalMobile.htm  
$htdocs/wikimedia/squids/TablesPageViewsMonthlySquidsOriginalMobile.htm
+      rsync -av $out/out_sp/EN/TablesPageViewsMonthlySquidsMobile.htm          
$htdocs_stat1002/wikimedia/squids/TablesPageViewsMonthlySquidsMobile.htm
+      rsync -av $out/out_sp/EN/TablesPageViewsMonthlySquidsOriginalMobile.htm  
$htdocs_stat1002/wikimedia/squids/TablesPageViewsMonthlySquidsOriginalMobile.htm
 
 
 # step 3c: zip and publish raw daily counts
 cd $csv/csv_wp
 zip PageViewsPerDayAll.csv.zip PageViewsPerDayAll.csv | tee -a  $report | cat
-rsync -av PageViewsPerDayAll.csv.zip $htdocs/archive/ | tee -a  $report | cat
+rsync -av PageViewsPerDayAll.csv.zip $htdocs_stat1001/archive/ | tee -a  
$report | cat
 
 echo "Ready" | tee -a $report | cat
 date | tee -a $report | cat

-- 
To view, visit https://gerrit.wikimedia.org/r/70929
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4c373a1d6f28a4416564c004265f135c9452e8be
Gerrit-PatchSet: 1
Gerrit-Project: analytics/wikistats
Gerrit-Branch: master
Gerrit-Owner: Stefan.petrea <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to