diff options
| author | Michael Peter Christen <mc@yacy.net> | 2012-09-25 00:19:52 +0200 |
|---|---|---|
| committer | Michael Peter Christen <mc@yacy.net> | 2012-09-25 00:19:52 +0200 |
| commit | 15ea053c3a9eaf011d700aba19c80db248621ef4 (patch) | |
| tree | d862e6d5f721a81b51b3a9b3bb01b97713978095 /bin | |
| parent | 1b474139dd6bcbfc918b0351a88d5fcec00c5114 (diff) | |
- added xml output in IndexControlURLs to get the storage page of index
dump commands
- adjusted the apicall.sh script to get the downloaded text as output to
stdout which is necessary to parse the content out of it
- added indexdump.sh script which creates a solr dump and prints out the
storage path for the index dump
- added synchronization to the Fulltext class to prevent that data is
stored to a non-existing solr index while this index is disabled during
the storage of the dump
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/apicall.sh | 4 | ||||
| -rwxr-xr-x | bin/indexdump.sh | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/bin/apicall.sh b/bin/apicall.sh index 60d359167..50a3331ca 100755 --- a/bin/apicall.sh +++ b/bin/apicall.sh @@ -4,9 +4,9 @@ port=$(grep ^port= ../DATA/SETTINGS/yacy.conf |cut -d= -f2) pw=$(grep ^adminAccountBase64MD5= ../DATA/SETTINGS/yacy.conf |cut -d= -f2) if which curl &>/dev/null; then - curl -s --header "Authorization: realm=$pw" "http://127.0.0.1:$port/$1" > /dev/null + curl -s --header "Authorization: realm=$pw" "http://127.0.0.1:$port/$1" elif which wget &>/dev/null; then - wget -q -t 1 --timeout=5 --header "Authorization: realm=$pw" "http://127.0.0.1:$port/$1" -O /dev/null + wget -q -t 1 --timeout=120 --header "Authorization: realm=$pw" "http://127.0.0.1:$port/$1" -O - else exit 1 fi diff --git a/bin/indexdump.sh b/bin/indexdump.sh new file mode 100755 index 000000000..d71b4248e --- /dev/null +++ b/bin/indexdump.sh @@ -0,0 +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 |
