Skip to content

Commit

Permalink
minor state replicate changes
Browse files Browse the repository at this point in the history
remove redundant file
  • Loading branch information
wiedehopf committed Aug 11, 2023
1 parent bf19085 commit ba15ba0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 64 deletions.
11 changes: 7 additions & 4 deletions put_state_live.sh → replicate_state_24.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,19 @@ set -e
# this script will transfer the traces for last 24h and current aircraft positions
# it reads the state from the source and will replace the target state except for aircraft that exist on the target but not on the source


# source
SHOST=localhost
SHOST=box1
SDIR=/var/globe_history/internal_state

# target
THOST=x230
THOST=box2
TDIR=/var/globe_history/internal_state

echo "$(date -u --rfc-3339=s) starting transfer from $SHOST to $THOST"

sleep 10

SSHDIR="$HOME/.vee0za6ugohru6Id0ziK3ahv1ietahva"
rm -rf "$SSHDIR"
mkdir -p "$SSHDIR"
Expand All @@ -33,8 +38,6 @@ TTDIR="$TDIR/tmp"
$TCMD "mkdir -p $TTDIR; mkdir -p $RDIR; chmod a+w $RDIR"


echo "$(date -u --rfc-3339=s) starting transfer from $SHOST to $THOST"

suffix="zstl"

for num in $(seq 0 255); do
Expand Down
60 changes: 0 additions & 60 deletions state_replicate.sh

This file was deleted.

0 comments on commit ba15ba0

Please sign in to comment.