mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-10 23:11:01 +00:00
split untar and restore
This commit is contained in:
parent
db81dcd5c1
commit
a07264a8d1
1 changed files with 13 additions and 4 deletions
|
|
@ -31,12 +31,21 @@ then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# untar and restore data data
|
||||
echo "Untarring and restoring data"
|
||||
ssh -A -i ~/.ssh/gitlab-featurebase-ci.pem -o "StrictHostKeyChecking no" ec2-user@${INGESTNODE0} "cd /data; tar -xf perf-able-seg.tar.xz; featurebase restore --host http://${DATANODE0}:10101 -s /data/data/backup | grep -v 'DEBUG'"
|
||||
# untar data
|
||||
echo "Untarring data"
|
||||
ssh -A -i ~/.ssh/gitlab-featurebase-ci.pem -o "StrictHostKeyChecking no" ec2-user@${INGESTNODE0} "cd /data; tar -xf perf-able-seg.tar.xz"
|
||||
if (( $? != 0 ))
|
||||
then
|
||||
echo "Untarring and restoring failed"
|
||||
echo "Untarring failed"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# restore data
|
||||
echo "Restoring data"
|
||||
ssh -A -i ~/.ssh/gitlab-featurebase-ci.pem -o "StrictHostKeyChecking no" ec2-user@${INGESTNODE0} "cd /data; featurebase restore --host http://${DATANODE0}:10101 -s /data/data/backup > restore.out"
|
||||
if (( $? != 0 ))
|
||||
then
|
||||
echo "Restoring failed"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue