mirror of
https://github.com/vmstan/gravity-sync.git
synced 2024-08-30 18:22:11 +00:00
f6f69201b4
* 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>
29 lines
667 B
Bash
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
|
|
} |