Skip to content
This repository has been archived by the owner. It is now read-only.
Browse files
Added script to initialize the backup repo for the inital restore.
  • Loading branch information
mbeard committed Apr 14, 2016
1 parent 341eb72 commit f60924a5a17b67a8baeb92049b9596e17fa28bb3
Showing 1 changed file with 9 additions and 0 deletions.
@@ -0,0 +1,9 @@
echo " * Initializing $REPO"
response=$(curl -s -XPUT "http://localhost:9200/_snapshot/$REPO" -d "{ \"type\": \"fs\", \"settings\": { \"location\": \"$BACKUPDIR\", \"max_snapshot_bytes_per_sec\": \"50mb\", \"max_restore_bytes_per_sec\": \"50mb\" }}")
if [[ "$response" != *"\"acknowledged\":true"* ]]; then
echo " Error: Unable to create backup repository:"
echo "$response"
echo " ...done."

0 comments on commit f60924a

Please sign in to comment.