#!/bin/bash

ES_SCRIPTS=`dirname $0`/../scripts/elasticsearch

perl $ES_SCRIPTS/load_current_tree.mysql.pl \
  -dbpass $RESEQTRACK_PASS \
  -ftp -check_timestamp

perl $ES_SCRIPTS/load_files.es.pl \
  -dbpass $RESEQTRACK_PASS \
  -check_timestamp \
  -es_host ves-hx-e4 \
  -es_index_name igsr_beta

perl $ES_SCRIPTS/sync_hx_hh.es.pl \
  -from_es_host ves-hx-e4 \
  -to ves-pg-e4 \
  -to ves-oy-e4 \
  -repo hx_hh_sync \
  -snapshot_prefix igsr_snap \
  -snap_index igsr_beta \
  -snap_index igsr \
  -restore_index igsr_beta

#!/bin/bash

ES_SCRIPTS=`dirname $0`/../scripts/elasticsearch

perl $ES_SCRIPTS/load_current_tree.mysql.pl \
  -dbpass $RESEQTRACK_PASS \
  -ftp -check_timestamp

perl $ES_SCRIPTS/load_files.es.pl \
  -dbpass $RESEQTRACK_PASS \
  -check_timestamp \
  -es_host ves-hx-e4 \
  -es_index_name igsr_beta

perl $GCA_ELASTICSEARCH/scripts/sync_hx_hh.es.pl \
  -from ves-hx-e4 \
  -to ves-pg-e4 \
  -to ves-oy-e4 \
  -repo igsr_repo \
  -snap_index igsr_beta \
  -snap_index igsr \
  -restore_only igsr_beta

Use the sync script from gca_elasticsearch repo
Use the sync script from gca_elasticsearch repo
