Page MenuHomeSoftware Heritage

create_deposit.sh
No OneTemporary

create_deposit.sh

#!/usr/bin/env bash
. ./default-setup
ARCHIVE=${1-'../../deposit.zip'}
NAME=$(basename ${ARCHIVE})
MD5=$(md5sum ${ARCHIVE} | cut -f 1 -d' ')
PROGRESS=${2-'false'}
TYPE=${3-'application/zip'}
curl -i -u "$CREDS" \
-X POST \
--data-binary @${ARCHIVE} \
-H "In-Progress: ${PROGRESS}" \
-H "Content-MD5: ${MD5}" \
-H "Content-Disposition: attachment; filename=${NAME}" \
-H 'Slug: external-id' \
-H "Content-type: ${TYPE}" \
${SERVER}/1/${COLLECTION}/

File Metadata

Mime Type
text/x-shellscript
Expires
Jul 4 2025, 6:34 PM (5 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3368473

Event Timeline