gravity-sync/includes/gs-compare.sh
Michael Stanclift f6f69201b4
3.2.6 (#141)
* Adds backup cleanup back to process

* Add backup cleanup to compare script when no changes are detected.

* Trek reference

* Redundant

* 3.2.6

* 3.2.6

Co-authored-by: Michael Stanclift <vmstan@mstanclift-a03.local>
2021-02-04 10:47:40 -06:00

29 lines
667 B
Bash

# 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 {
TASKTYPE='COMPARE'
MESSAGE="${MESSAGE}: ${TASKTYPE} Requested"
echo_good
show_target
validate_gs_folders
validate_ph_folders
if [ "${INCLUDE_CNAME}" == "1" ]
then
validate_dns_folders
fi
validate_os_sshpass
previous_md5
md5_compare
backup_cleanup
exit_withchange
}