SUNScholar/Export and Import Artifacts/Via Simple Archive Format

From Libopedia
Jump to: navigation, search
Back to Export and Import Artifacts

Step 1. Export on the old server

Step 2. Import on the new server

Help Info

$HOME/bin/dspace export

It takes the following parameters:

-i,--id            COLLECTION HANDLE or ITEM ID
-t,--type          COLLECTION or ITEM
-d,--dest          Destination directory for exported artifacts
-n,--number        Sequence number to begin exporting artifacts with
-m,--migrate       Strips out any per-repository-specifics
-h,--help          Help

Please note: The "-m" will export items without repository metadata, in other words: a clean export. This is for migration not movement of assets. Only available from DSpace version 1.6.0.

$HOME/bin/dspace import

It takes the following parameters:

 -a,--add           Add artifacts
 -d,--delete        Delete items listed in mapfile
 -r,--replace       Replace items in mapfile
 -e,--eperson       Email of eperson doing importing
 -s,--source        Source of exported items (directory)
 -c,--collection    Destination collection(s) Handle or Database ID
 -m,--mapfile       Mapfile artifacts in mapfile
 -w,--workflow      Send submission through collection's workflow
 -n,--notify        If sending submissions through the workflow, send
                    notification emails
 -p,--template      Apply template
 -t,--test          Test run - do not actually import items
 -R,--resume        Resume a failed import (add only)
 -h,--help          Help
 -q,--quiet         Don't display metadata
 -z,--zip           Name of zip file

adding items:                  ItemImport -a -e eperson -c collection -s sourcedir -m mapfile
adding items from zip file:    ItemImport -a -e eperson -c collection -s sourcedir -z filename.zip -m mapfile

replacing items:               ItemImport -r -e eperson -c collection -s sourcedir -m mapfile

deleting items:                ItemImport -d -e eperson -m mapfile

If multiple collections are specified, the first collection will be the one that owns the item.

SAFBuilder

  • Click on the heading above

References