diff options
| author | Michael Peter Christen <mc@yacy.net> | 2012-09-25 00:28:20 +0200 |
|---|---|---|
| committer | Michael Peter Christen <mc@yacy.net> | 2012-09-25 00:28:20 +0200 |
| commit | 640339ee218346298ad73c365d289a15681d34c4 (patch) | |
| tree | 8d75a0ebd2f6e967a390f36a804a37cbb72468d2 /bin | |
| parent | 15ea053c3a9eaf011d700aba19c80db248621ef4 (diff) | |
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´
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/indexdump.sh | 2 | ||||
| -rwxr-xr-x | bin/indexrestore.sh | 3 |
2 files changed, 4 insertions, 1 deletions
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 |
