From 8054e696cec5ac1468b56dc8234071ee86419ef5 Mon Sep 17 00:00:00 2001 From: dpavlin Date: Tue, 29 Oct 2013 21:09:56 +0100 Subject: [PATCH] export xml files from one instance and import into another --- eprints-clone.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 eprints-clone.sh diff --git a/eprints-clone.sh b/eprints-clone.sh new file mode 100755 index 0000000..b87fcf3 --- /dev/null +++ b/eprints-clone.sh @@ -0,0 +1,18 @@ +#!/bin/sh -xe + +from=ffzg +to=bibliografija + +bin="sudo -u eprints /usr/share/eprints3/bin" + +dir=/tmp/eprints-clone +test -d $dir || mkdir $dir + +test -e $dir/$from.archive.xml || $bin/export $from archive XMLFiles > $dir/$from.archive.xml +test -e $dir/$from.subject.xml || $bin/export $from subject XML > $dir/$from.subject.xml +test -e $dir/$from.user.xml || $bin/export $from user XML > $dir/$from.user.xml + +#$bin/epadmin erase_data $to +#$bin/import --verbose $to user XML $dir/$from.user.xml +#$bin/import_subjects --verbose --xml $to $dir/$from.subject.xml +$bin/import --verbose $to eprint XML $dir/$from.archive.xml -- 2.20.1