Skip to content

Commit

Permalink
Merge pull request #25 from amiaopensource/collectionchecksum-dbreport
Browse files Browse the repository at this point in the history
Fixity/PREMIS report DB Functions part deux
  • Loading branch information
dericed authored Oct 11, 2016
2 parents 0683e39 + 84e5f5c commit 2ce094a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions collectionchecksum
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
#this script will create checksums of metadata files, concatinate checksum.md5 files, and append to one large checksum file for each directory
#this script presumes a highly specific directory structure based on CUNY TV's Archival Information Package directory structure.
SCRIPTDIR=$(dirname "${0}")
. "${SCRIPTDIR}/mmfunctions"

_maketemp(){
mktemp -q "/tmp/$(basename "${0}").XXXXXX"
Expand Down Expand Up @@ -30,5 +32,6 @@ while [ "${*}" != "" ] ; do
sort -k2 "${TEMPCHECKSUMFILE}" | grep -v .DS_Store >> "${TAPECHECKSUMFILE}"

shift
_report_to_db
done

1 change: 1 addition & 0 deletions writelto
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ if [[ "${VERIFY}" = "Y" ]] ; then
READBACKDIR="${LTO_LOGS}/readback_checksums"
_mkdir2 "${READBACKDIR}"
find "${TAPE_PATH}" -type f ! -name .DS_Store -exec md5deep -rel "{}" >> "${READBACKDIR}/${TAPE_SERIAL}_ReadBack_checksum_${VERIFYTIME}.md5" \;
_report_to_db
fi

echo -n "$(date +%FT%T) " >> "${LTO_LOGS}/tape_capacity.txt"
Expand Down

0 comments on commit 2ce094a

Please sign in to comment.