gravity-sync/includes/gs-compare.sh

29 lines
667 B
Bash
Raw Normal View History

# 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!
## 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
if [ "${INCLUDE_CNAME}" == "1" ]
then
validate_dns_folders
fi
2020-12-31 02:45:47 +00:00
validate_os_sshpass
previous_md5
md5_compare
backup_cleanup
2020-12-31 02:45:47 +00:00
exit_withchange
}