From 75eb9c769509c5e42b0020c3999b3902e9f73995 Mon Sep 17 00:00:00 2001 From: Michael Stanclift Date: Mon, 29 Jun 2020 08:47:09 -0500 Subject: [PATCH] Write hashes from log out --- gravity-sync.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gravity-sync.sh b/gravity-sync.sh index bd5562c..4388842 100755 --- a/gravity-sync.sh +++ b/gravity-sync.sh @@ -500,6 +500,15 @@ function logs_export { echo_stat echo -e $(date) "[${TASKTYPE}]" >> ${LOG_PATH}/${SYNCING_LOG} error_validate + + MESSAGE="Saving File Hashes" + echo_stat + rm -f backup/gravity-sync.md5 + echo -e ${primaryDBMD5} >> backup/gravity-sync.md5 + echo -e ${secondDBMD5} >> backup/gravity-sync.md5 + echo -e ${primaryCLMD5} >> backup/gravity-sync.md5 + echo -e ${secondCLMD5} >> backup/gravity-sync.md5 + error_validate } ### Output Sync Logs