Difference between revisions of "SUNScholar/Export and Import Artifacts"

From Libopedia
Jump to navigation Jump to search
 
(249 intermediate revisions by 3 users not shown)
Line 1: Line 1:
hZOHT7  <a href="http://etimddixgjqy.com/">etimddixgjqy</a>, [url=http://lehdsaofbuys.com/]lehdsaofbuys[/url], [link=http://lyszaopiwaoj.com/]lyszaopiwaoj[/link], http://yhitepssatwb.com/
+
<center>
 +
'''[[SUNScholar/Customisation|Back to Customisation]]'''
 +
</center>
  
comment5 http://us.startv.com/shows/love daily diet advice http://us.startv.com/news/spooky free web site search engine submit http://us.startv.com/synopsis/birthday-specials best prescription diet drug http://us.startv.com/news/kamya-punjabi-talks-about-maryaada-lekin-kab-tak diet pepsi pilot http://us.startv.com/userf phermine diet http://us.startv.com/gallery/zara wabc radio weight loss sponsor http://us.startv.com/node/7/downloads eygptian diet http://us.startv.com/gallery/neil-deepika-chhote-ustaad-3 deadweight welfare loss http://us.startv.com/wallpapers/humari-devrani-wallpaper free weightloss journal http://us.startv.com/news/vivian-speaks-about-abhay directories for submission http://us.startv.com/wallpapers/masterchef cardio burns fat http://us.startv.com/recaps/masterchef weightloss camps for kids http://us.startv.com/wallpapers/masterchef-india-0 japanese macrobiotic diet http://us.startv.com/gallery/lkp-2 submit your masturbation technique http://us.startv.com/synopsis/ajab diete proteinee
+
==Introduction==
 +
'''<font color="red">The functionality to export communities, whole collections and items using the XMLUI, only became available with DSpace versions => 1.7.0.<br>With DSpace versions => 5.X it is possible to import collections archived using the simple archive format with the XMLUI.</font>'''
  
comment6 http://www.springfieldchamber.com/no_cache/news_updates/calendar_and_special_events/?tx_teksaccext_pi4[mode]=viewMonth&tx_teksaccext_pi4[month]=092010 healthy low calorie diets http://www.springfieldchamber.com/no_cache/business_directory/business_a_z/?tx_teksaccext_pi3[mode]=redirWWW&tx_teksaccext_pi3[uid]=2852&tx_teksaccext_pi3[address]= robotics equipment submit your site http://www.springfieldchamber.com/no_cache/news_updates/calendar_and_special_events/?tx_teksaccext_pi4[mode]=viewMonth&tx_teksaccext_pi4[month]=021801&tx_teksaccext_pi4[expandEvents]=true&tx_teksaccext_pi4[category]=12 mike mahler diet http://www.springfieldchamber.com/index.php?id=124&no_cache=1 with the adkins diet http://www.springfieldchamber.com/no_cache/business_directory/business_a_z/?tx_teksaccext_pi3[mode]=emailForm&tx_teksaccext_pi3[uid]=294 submission erotic story http://www.springfieldchamber.com/no_cache/news_updates/calendar_and_special_events/?tx_teksaccext_pi4[mode]=viewMonth&tx_teksaccext_pi4[month]=102010&tx_teksaccext_pi4[expandEvents]=true diet soda phosphorus peyronies syndrome http://www.springfieldchamber.com/no_cache/news_updates/calendar_and_special_events/?tx_teksaccext_pi4[mode]=viewMonth&tx_teksaccext_pi4[month]=021792 acid alkalin diet http://www.springfieldchamber.com/no_cache/business_directory/business_a_z/?tx_teksaccext_pi3[mode]=redirWWW&tx_teksaccext_pi3[uid]=1517&tx_teksaccext_pi3[address]= blood type diet food lists http://www.springfieldchamber.com/no_cache/business_directory/business_a_z/?tx_teksaccext_pi3[mode]=redirWWW&tx_teksaccext_pi3[uid]=2920&tx_teksaccext_pi3[address]= does the diet solution work http://www.springfieldchamber.com/no_cache/business_directory/business_a_z/?tx_teksaccext_pi3[mode]=redirWWW&tx_teksaccext_pi3[uid]=6168&tx_teksaccext_pi3[address]= $153 weight loss pill http://www.springfieldchamber.com/no_cache/business_directory/business_a_z/?tx_teksaccext_pi3[mode]=redirWWW&tx_teksaccext_pi3[uid]=1110&tx_teksaccext_pi3[address]= diet food raw start http://www.springfieldchamber.com/no_cache/news_updates/calendar_and_special_events/?tx_teksaccext_pi4[mode]=viewdate&tx_teksaccext_pi4[date]=1287464400 com diet healthy loss newnitetrim program weight http://www.springfieldchamber.com/no_cache/news_updates/calendar_and_special_events/?tx_teksaccext_pi4[mode]=viewMonth&tx_teksaccext_pi4[month]=021801&tx_teksaccext_pi4[expandEvents]=true&tx_teksaccext_pi4[category]=5 individual states bmi http://www.springfieldchamber.com/no_cache/business_directory/business_a_z/?tx_teksaccext_pi3[mode]=redirWWW&tx_teksaccext_pi3[uid]=2174&tx_teksaccext_pi3[address]= quick weight loss centers cost http://www.springfieldchamber.com/no_cache/business_directory/?tx_teksaccext_pi1[mode]=redirWWW&tx_teksaccext_pi1[uid]=5374&tx_teksaccext_pi1[address]= heart medical hospital diet
+
==[[SUNScholar/Export and Import Artifacts/Via Packages|Using Packages Format]]==
 
+
==[[SUNScholar/Export and Import Artifacts/Via Simple Archive Format|Using Simple Archive Format]]==
=Test the exports for correctness if imports fail=
+
==Transfer Content==
The imports will fail if the exports are not correct. Use the following to setup a script to check the exports for correctness on the new server.
+
*https://wiki.duraspace.org/display/DSDOC5x/Exchanging+Content+Between+Repositories
==Create export check script==
+
*https://wiki.duraspace.org/display/DSDOC4x/Exchanging+Content+Between+Repositories
Open the export check script for editing as follows:
+
*https://wiki.duraspace.org/display/DSDOC3x/Exchanging+Content+Between+Repositories
nano /root/scripts/collection-check
+
==Archive Content==
Copy and paste the following to open editor:
+
*https://wiki.duraspace.org/display/DSDOC5x/AIP+Backup+and+Restore
<pre>
+
*https://wiki.duraspace.org/display/DSDOC4x/AIP+Backup+and+Restore
#!/bin/bash
+
*https://wiki.duraspace.org/display/DSDOC3x/AIP+Backup+and+Restore
 
+
*https://wiki.duraspace.org/display/DSPACE/ReplicationTaskSuite
# Setup the configs.
+
==[[SUNScholar/Curation/Repository|Migrate Content]]==
. config
+
Click on the heading above.
 
+
[[Category:Customisation]]
# Clean out the old logs.
 
rm /root/test.log
 
 
 
# Go thru the collections
 
for i in `cat collections` ; do
 
    echo $i > /tmp/map
 
    ECID=`cat /tmp/map | awk -F',' '{ print $1 }'`
 
    ICID=`cat /tmp/map | awk -F',' '{ print $2 }'`
 
    echo "Checking items in collection:$ECID"
 
    LIST=`ls $IMPORT/$ECID`
 
   
 
    for i in $LIST ; do
 
ITM=$i
 
cd  $IMPORT/$ECID/$ITM
 
if [ ! -e dublin_core.xml ] ; then
 
echo "Item: $ITM, No dublin core." >> /root/test.log
 
fi
 
if [ ! -e handle ] ; then
 
echo "Item: $ITM, No handle." >> /root/test.log
 
fi
 
if [ ! -e contents ] ; then
 
echo "Item: $ITM, No contents file." >> /root/test.log
 
fi
 
if [ ! -e license.txt ] ; then
 
echo "Item: $ITM, No license." >> /root/test.log
 
fi
 
ls $IMPORT/$ECID/$ITM | grep pdf > /tmp/pdf.log
 
if [ $? -ne 0 ] ; then
 
echo "Item: $ITM, No PDF file." >> /root/test.log
 
fi
 
    done
 
    cat /root/test.log | mail -s "Exported collections test log" $PERSON
 
    echo "Check complete and report emailed to dspace admin user"
 
done
 
</pre>
 
Save the file and exit the editor.
 
 
 
Now make the script executeable as follows:
 
chmod 0775 /root/scripts/collection-check
 
 
 
==Do the exports check==
 
Type the following to do the check:
 
/root/scripts/collection-check
 
Now check your email, you should have one with details of the test log.
 
 
 
If there are errors, fix them on the old server. Delete the exports on the old server and do a new export after everything is fixed. Bascially start the export and import over again. At least you now have the scripts to do it over again.
 
 
 
=Help Info=
 
==/home/dspace/bin/export==
 
It takes the following parameters:
 
<pre>
 
-d,--dest    destination collection directory
 
-h,--help    help
 
-i,--id      collection/item ID
 
-n,--number  sequence number to begin exporting items with
 
-m,--migrate  strips out any per-repository-specifics
 
-t,--type    type: COLLECTION or ITEM
 
</pre>
 
 
 
==/home/dspace/bin/import==
 
 
 
It takes the following parameters:
 
<pre>
 
-s,--source        source collection directory
 
-c,--collection    destination collection handle
 
-e,--eperson      email of authorised person
 
-m,--mapfile      collection/item map file name
 
-a,--add          add items
 
-d,--delete        delete items listed in mapfile
 
-r,--replace      replace items listed in mapfile
 
-w,--workflow      send submission through collection's workflow
 
-p,--template      apply template
 
-t,--test          test run - do not actually import items
 
-R,--resume        resume a failed import (add only)
 
-h,--help          help
 
</pre>
 
 
 
=References=
 
* http://wiki.dspace.org/index.php/Batch_Metadata_Editing_Prototype
 
* http://services.lib.sun.ac.za/files/dspace/ingest-export.odp
 
* http://services.lib.sun.ac.za/files/dspace/Module%20-%20Import%20and%20Export.odt
 
* http://cadair.aber.ac.uk/dspace/handle/2160/627
 
* http://www.dspace.org/index.php/Architecture/technology/system-docs/storage.html
 
* http://cavlec.yarinareth.net/2008/01/07/the-dspace-batch-importer/
 
* http://tds.terkko.helsinki.fi/utils/
 
 
 
=Command Line Help=
 
'''<font color="red">Go to: http://www.ubuntu.sun.ac.za/wiki/index.php/SelfHelp for more help about the command line programs used in this procedure.</font>'''
 
 
 
'''[[SUNScholar/IR|Back to IR Help]]'''
 

Latest revision as of 15:57, 29 May 2016