Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Update stats sync script to include new servers
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhys Smith committed Mar 27, 2017
1 parent 0253352 commit 246063c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions utilities/stats-sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,25 @@ logslocation="/var/stats"
rsync -at --exclude modsec* stats@md1:/var/log/httpd/* $logslocation/md/md1/
rsync -at --exclude modsec* stats@md2:/var/log/httpd/* $logslocation/md/md2/
rsync -at --exclude modsec* stats@md3:/var/log/httpd/* $logslocation/md/md3/
rsync -at --exclude modsec* stats@md-ne-01:/var/log/httpd/* $logslocation/md/md-ne-01/
rsync -at --exclude modsec* stats@md-ne-02:/var/log/httpd/* $logslocation/md/md-ne-02/
rsync -at --exclude modsec* stats@md-we-01:/var/log/httpd/* $logslocation/md/md-we-01/
rsync -at --exclude modsec* stats@md-we-02:/var/log/httpd/* $logslocation/md/md-we-02/

# Logs from CDS servers
rsync -at --exclude modsec* stats@shib-cds1:/var/log/httpd/* $logslocation/cds/shib-cds1/
rsync -at --exclude modsec* stats@shib-cds2:/var/log/httpd/* $logslocation/cds/shib-cds2/
rsync -at --exclude modsec* stats@shib-cds3:/var/log/httpd/* $logslocation/cds/shib-cds3/
rsync -at --exclude modsec* stats@shibcds-ne-01:/var/log/httpd/* $logslocation/cds/shibcds-ne-01/
rsync -at --exclude modsec* stats@shibcds-ne-02:/var/log/httpd/* $logslocation/cds/shibcds-ne-02/
rsync -at --exclude modsec* stats@shibcds-we-01:/var/log/httpd/* $logslocation/cds/shibcds-we-01/
rsync -at --exclude modsec* stats@shibcds-we-02:/var/log/httpd/* $logslocation/cds/shibcds-we-02/

# Logs from websites
rsync -at --exclude modsec* stats@web1:/var/log/httpd/* $logslocation/www/web1/
rsync -at --exclude modsec* stats@web2:/var/log/httpd/* $logslocation/www/web2/
rsync -at --exclude modsec* stats@www-ne-01:/var/log/httpd/* $logslocation/www/www-ne-01/
rsync -at --exclude modsec* stats@www-we-01:/var/log/httpd/* $logslocation/www/www-we-01/

# Logs from Wugen
rsync -at --exclude modsec* stats@wugen:/var/log/httpd/* $logslocation/wugen/
Expand Down

0 comments on commit 246063c

Please sign in to comment.