~henry01/mice-archivist-tools/trunk

« back to all changes in this revision

Viewing changes to archiveCheckMissingFiles.sh

  • Committer: Henry Nebrensky
  • Date: 2020-04-04 19:17:13 UTC
  • Revision ID: j.nebrensky@brunel.ac.uk-20200404191713-w1nyej5cj5zc2fu0
archiveCheckMissingFiles.sh - confirm that files exist and are downloadable to restore lost file replicas, crosschecking with local records.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
DISK_PRT=':8443'
19
19
 
20
20
MICE_CAT="${PWD}/transferRecords/ArchiveList.txt"
21
 
FTS_LIST="fts.list"
22
 
 
23
 
if [ ! -r "${MICE_CAT}" ]; then 
24
 
        echo "Local catalogue file missing!"
25
 
        exit 1
26
 
fi
27
21
 
28
22
if [ -z "${TMPDIR}" ]; then
29
23
        echo "setting TMPDIR"
30
24
        TMPDIR="/tmp"
31
25
fi
32
26
 
 
27
FTS_LIST="${TMPDIR}/fts.list"
 
28
 
 
29
if [ ! -r "${MICE_CAT}" ]; then
 
30
                echo "Local catalogue file missing!"
 
31
                exit 1
 
32
fi
 
33
 
33
34
while read MICE_FILE ; do
34
35
        srmls -l ${TAPE_SRV}${TAPE_PRT}/${TAPE_DIR}/${MICE_FILE} 1> ${TMPDIR}/STDOUT 2>${TMPDIR}/GUID
35
36
        if [ $? -ne 0 ]; then