Description¶
Downloads restricted data from the AEA’s Box folder and creates its manifest.
Finds the Jira ticket (
$jiraticket, thenconfig.yml, then lookup from an openICPSR directory) and asks Jira for the Box folder ID; falls back toboxfolderidinconfig.yml.Downloads the files with download_box_private.py: by folder ID when known, otherwise by searching for the repository name. A folder ID found by searching is written to
config.yml.Unpacks the files with 00_unpack_zip.sh.
Creates the manifest with 02_create_manifest.sh.
Usage¶
./automations/60_process_restricted_box.sh [repository_name] [directory] [tag]repository_name- Numeric part of theaearep-NNNNrepository name; only used when searching by name.directory- Download directory (default:restricted).tag- Suffix for the manifest files (default: the directory name).
Environment Variables¶
BOX_FOLDER_PRIVATE,BOX_PRIVATE_KEY_ID,BOX_ENTERPRISE_ID,BOX_PRIVATE_JSON- Box credentialsjiraticket,JIRA_USERNAME,JIRA_API_KEY