Last change
on this file was
3106,
checked in by vronk, 11 years ago
|
adding scripts for uploading cmd-records from oai-harvester into mdrepo
|
File size:
527 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | src=$1 |
---|
3 | trg=$2 |
---|
4 | echo source directory: $src |
---|
5 | echo target dir: $trg |
---|
6 | # count=0 |
---|
7 | #echo ${st/mdrepo/xx} |
---|
8 | #find $1 -name "*.xml" | while read xml; do echo ${xml/$src/$trg}; done |
---|
9 | find $1 -name "*.xml" | while read srcfile; do (( count ++ )); echo $count; curl -i -H "Accept: application/xml" -u "$3:$4" -X PUT -T $srcfile ${srcfile/$src/$trg} >> upload.log 2> /dev/null; done |
---|
10 | echo uploaded $count files |
---|
11 | #curl -i -H "Accept: application/xml" -u "data-upload:$3" -X PUT -T \{} http://localhost:8681/exist/rest/db/mdrepo-data/ |
---|
Note: See
TracBrowser
for help on using the repository browser.