6 bin="sudo -u eprints /usr/share/eprints3/bin"
9 test -d $dir || mkdir $dir
11 test -e $dir/$from.archive.xml || $bin/export $from archive XMLFiles > $dir/$from.archive.xml
12 test -e $dir/$from.subject.xml || $bin/export $from subject XML > $dir/$from.subject.xml
13 test -e $dir/$from.user.xml || $bin/export $from user XML > $dir/$from.user.xml
15 #$bin/epadmin erase_data $to
16 #$bin/import --verbose $to user XML $dir/$from.user.xml
17 #$bin/import_subjects --verbose --xml $to $dir/$from.subject.xml
18 $bin/import --verbose $to eprint XML $dir/$from.archive.xml