Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

added the indexrestore.sh script which must be called with the path of the index dump. This is the reverse of indexdump.sh which takes the output of indexdump.sh as input to restore an index. Now it should be possible to transfer a complete YaCy Solr index from one peer yacy1 to another peer yacy2 with the following command: yacy2/bin/indexrestore.sh ´yacy1/bin/indexdump.sh´

Michael Peter Christen640339ee2183
diff --git a/bin/indexdump.sh b/bin/indexdump.sh
index d71b4248e..e2d694f59 100755
--- a/bin/indexdump.sh
+++ b/bin/indexdump.sh
@@ -1,3 +1,3 @@
#!/bin/bash
cd "`dirname $0`"
-./apicall0.sh "/IndexControlURLs_p.xml?indexdump=" | awk '/<dumpfile>/{ gsub("<dumpfile>","" );gsub("<\/dumpfile>","" ); print $0 }' | awk '{print $1}';
\ No newline at end of file
+./apicall.sh "/IndexControlURLs_p.xml?indexdump=" | awk '/<dumpfile>/{ gsub("<dumpfile>","" );gsub("<\/dumpfile>","" ); print $0 }' | awk '{print $1}';
\ No newline at end of file
diff --git a/bin/indexrestore.sh b/bin/indexrestore.sh
new file mode 100755
index 000000000..61134db87
--- /dev/null
+++ b/bin/indexrestore.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+cd "`dirname $0`"
+./apicall.sh "/IndexControlURLs_p.xml?indexrestore=&dumpfile=$1" > /dev/null