source: other-projects/hathitrust/wcsa/extracted-features-solr/trunk/gslis-cluster/SCRIPTS/remote-solr-rsync2nema-local-shard-all.sh@ 31161

Last change on this file since 31161 was 31112, checked in by davidb, 5 years ago

To move out shards saved in /tmp on gsliscluter1 nodes to nema

  • Property svn:executable set to *
File size: 282 bytes
RevLine 
[31112]1#!/bin/bash
2
3unique_hosts=`echo $SOLR_NODES | tr ' ' '\n' | sed 's/:.*$//' | sort | uniq`
4
5
6
7for solr_host in $unique_hosts ; do
8 echo "Running 'rsync' on $solr_host -> nema:/tmp/$solr_host/solr-ef"
9 ssh $solr_host rsync -pav /tmp/solr-ef/solr nema:/tmp/${solr_host}-solr-ef
10done
Note: See TracBrowser for help on using the repository browser.