Updated logging

Added loging headers for volume name and timestamp
This commit is contained in:
Tim Rutter 2025-01-22 14:04:57 +10:30
parent 0ed5770d9d
commit 3bf6ab9054

View File

@ -30,7 +30,8 @@ fi
#DST="${VOLUME_NAME} ${VOLUME_UUID}/${VOLUME_DIR}${SEP}" #DST="${VOLUME_NAME} ${VOLUME_UUID}/${VOLUME_DIR}${SEP}"
DST="by-uuid/${VOLUME_UUID}/${VOLUME_DIR}${SEP}" DST="by-uuid/${VOLUME_UUID}/${VOLUME_DIR}${SEP}"
LOG="logs/${VOLUME_UUID}-${VOLUME_NAME}-${TIMESTAMP}.log" LOG="logs/${VOLUME_UUID} ${TIMESTAMP} ${VOLUME_NAME}.log"
TARGET="timrutter@${HOST}:'/volume1/Storage/HDDs/${DST}'" TARGET="timrutter@${HOST}:'/volume1/Storage/HDDs/${DST}'"
@ -78,6 +79,9 @@ read -p "Pause, press any key... " -n 1 -r
echo "Running..." echo "Running..."
echo "#volume_name=${VOLUME_NAME}
#timestamp=${TIMESTAMP}" >> "${LOG}"
/usr/bin/rsync -tirl \ /usr/bin/rsync -tirl \
--progress --stats $RSYNC_OPTIONS \ --progress --stats $RSYNC_OPTIONS \
--exclude={'*.backupdb/*','.Trashes','.Spotlight-V100','.AppleDouble','.DS_Store','Desktop DF','Desktop DB','.apdisk'.'.Trashes','.fseventsd','.TemporaryItems','.Spotlight-V100','.DocumentRevisions-V100','.com.apple.timemachine*','tmbootpicker.efi','exclude-from-transfer'} \ --exclude={'*.backupdb/*','.Trashes','.Spotlight-V100','.AppleDouble','.DS_Store','Desktop DF','Desktop DB','.apdisk'.'.Trashes','.fseventsd','.TemporaryItems','.Spotlight-V100','.DocumentRevisions-V100','.com.apple.timemachine*','tmbootpicker.efi','exclude-from-transfer'} \