mirror of
https://github.com/vmstan/gravity-sync.git
synced 2025-05-24 00:02:22 -04:00
3.4.4 (#201)
Co-authored-by: Michael Stanclift <vmstan@ms-constitution.local>
This commit is contained in:
parent
d07e492a97
commit
b19eaf8e22
@ -3,7 +3,7 @@ SCRIPT_START=$SECONDS
|
|||||||
|
|
||||||
# GRAVITY SYNC BY VMSTAN #####################
|
# GRAVITY SYNC BY VMSTAN #####################
|
||||||
PROGRAM='Gravity Sync'
|
PROGRAM='Gravity Sync'
|
||||||
VERSION='3.4.2'
|
VERSION='3.4.4'
|
||||||
|
|
||||||
# For documentation or downloading updates visit https://github.com/vmstan/gravity-sync
|
# For documentation or downloading updates visit https://github.com/vmstan/gravity-sync
|
||||||
# Requires Pi-Hole 5.x or higher already be installed, for help visit https://pi-hole.net
|
# Requires Pi-Hole 5.x or higher already be installed, for help visit https://pi-hole.net
|
||||||
|
@ -45,6 +45,12 @@ function backup_local_gravity_integrity() {
|
|||||||
MESSAGE="${UI_BACKUP_INTEGRITY_FAILED} ${UI_GRAVITY_NAME}"
|
MESSAGE="${UI_BACKUP_INTEGRITY_FAILED} ${UI_GRAVITY_NAME}"
|
||||||
echo_fail
|
echo_fail
|
||||||
|
|
||||||
|
MESSAGE="${UI_BACKUP_INTEGRITY_DELETE} ${UI_GRAVITY_NAME}"
|
||||||
|
echo_stat
|
||||||
|
|
||||||
|
sudo rm ${LOCAL_FOLDR}/${BACKUP_FOLD}/${BACKUPTIMESTAMP}-${GRAVITY_FI}.backup
|
||||||
|
error_validate
|
||||||
|
|
||||||
exit_nochange
|
exit_nochange
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@ -104,6 +110,13 @@ function backup_remote_gravity_integrity() {
|
|||||||
MESSAGE="${UI_BACKUP_INTEGRITY_FAILED} ${UI_GRAVITY_NAME}"
|
MESSAGE="${UI_BACKUP_INTEGRITY_FAILED} ${UI_GRAVITY_NAME}"
|
||||||
echo_fail
|
echo_fail
|
||||||
|
|
||||||
|
MESSAGE="{UI_BACKUP_INTEGRITY_DELETE} ${UI_GRAVITY_NAME}"
|
||||||
|
echo_stat
|
||||||
|
|
||||||
|
CMD_TIMEOUT='15'
|
||||||
|
CMD_REQUESTED="sudo rm ${RIHOLE_DIR}/${GRAVITY_FI}.backup"
|
||||||
|
create_sshcmd
|
||||||
|
|
||||||
exit_nochange
|
exit_nochange
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -83,6 +83,7 @@ UI_BACKUP_PURGE='Purging redundant backups on secondary Pi-hole instance'
|
|||||||
UI_BACKUP_REMAIN='days of backups remain'
|
UI_BACKUP_REMAIN='days of backups remain'
|
||||||
UI_BACKUP_INTEGRITY="Checking ${UI_GRAVITY_NAME} backup integrity"
|
UI_BACKUP_INTEGRITY="Checking ${UI_GRAVITY_NAME} backup integrity"
|
||||||
UI_BACKUP_INTEGRITY_FAILED='Integrity check has failed for the primary'
|
UI_BACKUP_INTEGRITY_FAILED='Integrity check has failed for the primary'
|
||||||
|
UI_BACKUP_INTEGRITY_DELETE='Removing failed backup'
|
||||||
|
|
||||||
# Restore
|
# Restore
|
||||||
UI_RESTORE_WARNING="This will overwrite your current Pi-hole settings on $HOSTNAME with a previous version!"
|
UI_RESTORE_WARNING="This will overwrite your current Pi-hole settings on $HOSTNAME with a previous version!"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user