2021-01-04 20:37:35 +00:00
|
|
|
# GRAVITY SYNC BY VMSTAN #####################
|
|
|
|
# gs-compare.sh ##############################
|
|
|
|
|
|
|
|
# For documentation or downloading updates visit https://github.com/vmstan/gravity-sync
|
|
|
|
# This code is called from the main gravity-sync.sh file and should not execute directly!
|
|
|
|
|
2020-10-07 22:45:39 +00:00
|
|
|
## Compare Task
|
|
|
|
function task_compare {
|
2020-12-31 02:45:47 +00:00
|
|
|
TASKTYPE='COMPARE'
|
|
|
|
MESSAGE="${MESSAGE}: ${TASKTYPE} Requested"
|
|
|
|
echo_good
|
2020-12-31 02:49:54 +00:00
|
|
|
|
2020-12-31 02:45:47 +00:00
|
|
|
show_target
|
|
|
|
validate_gs_folders
|
|
|
|
validate_ph_folders
|
2021-01-04 20:37:35 +00:00
|
|
|
|
|
|
|
if [ "${INCLUDE_CNAME}" == "1" ]
|
|
|
|
then
|
|
|
|
validate_dns_folders
|
|
|
|
fi
|
|
|
|
|
2020-12-31 02:45:47 +00:00
|
|
|
validate_os_sshpass
|
|
|
|
|
|
|
|
previous_md5
|
|
|
|
md5_compare
|
2021-02-04 16:47:40 +00:00
|
|
|
backup_cleanup
|
|
|
|
|
2020-12-31 02:45:47 +00:00
|
|
|
exit_withchange
|
2020-10-07 22:45:39 +00:00
|
|
|
}
|