Batch Upload to Hyrax
Instructions for batch uploading digital objects to Hyrax from spreadsheets
This documentation is out of date, use Build Hyrax Upload .tsv
Step-by-step guide
Create a spreadsheet for the objects you want to upload using the templates in \\Lincoln\Library\ESPYderivatives\templates
Place the .TSV spreadsheets you wish to upload in \\Lincoln\Library\ESPYderivatives\import
Place the files listed in the spreadsheet in \\Lincoln\Library\ESPYderivatives\files
Use ssh to log on: ssh railsprod
Switch to railsuser with:
sudo -u railsuser bash
Change directory in to Hyrax:
cd /var/www/hyrax-UAlbany
Test that all import files are correct by running:
rake import:check
To Import, run:
rake import:sheet
to import in background (recommended), run:
nohup rake import:sheet >> /media/Library/ESPYDerivatives/log/myLogFile.log 2>&1 &
Monitor the background jobs at https://archives.albany.edu/sidekiq/ (requires Hyrax login)
Package Import to AIP (replaced by Processing Ingested Digital Files)
To package the files into \\Lincoln\Masters\Archives\AIP, examine the finished .TSV spreadsheet in \\Lincoln\Library\ESPYderivatives\complete
If using the Processing Ingested Digital Files workflow, remove files from \\Linco'n\Library\ESPYderivatices\files\<collectionID> and return to Processing Ingested Digital Files.
If the sheet is correct, move the .TSV to \\Lincoln\Library\ESPYderivatives\complete\move
Ensure the files are still in \\Lincoln\Library\ESPYderivatives\files
Use ssh to log on to rails2 (espydev)
Change directory with "cd /opt/lib/scripts"
Activate the correct Python environment with "pyenv activate bagImports"
run "python bagImports.py" with the params collectionID, path to legacy metadata files, path to master files
Example: " python bagImports.py apap150 '/media/Masters/Special Collections/Electronic_Records_Library/apap150/legacy' '/media/Masters/Special Collections/Electronic_Records_Library/apap150/masters' "
Be sure that any ArchivesSpace Digital object file paths are updated.