Difference between revisions of "Sword Export to DANS"

From Dryad wiki
Jump to: navigation, search
(Useful Commands)
(Useful Commands)
Line 23: Line 23:
 
<pre>
 
<pre>
 
sudo /opt/dryad/bin/dspace dsrun org.datadryad.dans.DANSTransfer -i 20 -d -t /opt/dryad-data/tmp/
 
sudo /opt/dryad/bin/dspace dsrun org.datadryad.dans.DANSTransfer -i 20 -d -t /opt/dryad-data/tmp/
 +
</pre>
 +
 +
To package many items, put the item IDs in a text file called items.txt, one ID per line. Then, place this file in the directory where the temporary files should be stored (usually /opt/dryad-data/tmp), and from this directory, run:
 +
<pre>
 +
dryad2dans/bin/dans-transfer-many.sh
 
</pre>
 
</pre>
  
 
[[Category:Technical Documentation]]
 
[[Category:Technical Documentation]]

Revision as of 07:57, 29 August 2017

Dryad content is stored in the DANS/KNAW system called EASY for preservation purposes. Dryad exports content to DANS using BagIt packages transferred via the SWORD protocol.

Installation Instructions

Detailed documentation for the DANS tools is on GitHub:

Useful Commands

To package (but not transfer) a single item, with Item ID 20, and leave the package for manual inspection:

sudo /opt/dryad/bin/dspace dsrun org.datadryad.dans.DANSTransfer -i 20 -p -k -t /opt/dryad-data/tmp/

To package and transfer a single item, with Item ID 20:

sudo /opt/dryad/bin/dspace dsrun org.datadryad.dans.DANSTransfer -i 20 -d -t /opt/dryad-data/tmp/

To package many items, put the item IDs in a text file called items.txt, one ID per line. Then, place this file in the directory where the temporary files should be stored (usually /opt/dryad-data/tmp), and from this directory, run:

dryad2dans/bin/dans-transfer-many.sh