mirror of
https://github.com/vmstan/gravity-sync.git
synced 2025-07-09 02:34:06 -04:00
Updates
This commit is contained in:
parent
3f2e96c8bb
commit
9b7d536977
@ -205,17 +205,19 @@ function pull_gs_grav {
|
|||||||
|
|
||||||
## Pull Custom
|
## Pull Custom
|
||||||
function pull_gs_cust {
|
function pull_gs_cust {
|
||||||
|
backup_local_custom
|
||||||
|
|
||||||
if [ "$SKIP_CUSTOM" != '1' ]
|
if [ "$SKIP_CUSTOM" != '1' ]
|
||||||
then
|
then
|
||||||
if [ "$REMOTE_CUSTOM_DNS" == "1" ]
|
if [ "$REMOTE_CUSTOM_DNS" == "1" ]
|
||||||
then
|
then
|
||||||
if [ -f ${PIHOLE_DIR}/${CUSTOM_DNS} ]
|
# if [ -f ${PIHOLE_DIR}/${CUSTOM_DNS} ]
|
||||||
then
|
# then
|
||||||
MESSAGE="Backing Up ${CUSTOM_DNS} on $HOSTNAME"
|
# MESSAGE="Backing Up ${CUSTOM_DNS} on $HOSTNAME"
|
||||||
echo_stat
|
# echo_stat
|
||||||
cp ${PIHOLE_DIR}/${CUSTOM_DNS} $HOME/${LOCAL_FOLDR}/${BACKUP_FOLD}/${CUSTOM_DNS}.backup >/dev/null 2>&1
|
# cp ${PIHOLE_DIR}/${CUSTOM_DNS} $HOME/${LOCAL_FOLDR}/${BACKUP_FOLD}/${CUSTOM_DNS}.backup >/dev/null 2>&1
|
||||||
error_validate
|
# error_validate
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
MESSAGE="Pulling ${CUSTOM_DNS} from ${REMOTE_HOST}"
|
MESSAGE="Pulling ${CUSTOM_DNS} from ${REMOTE_HOST}"
|
||||||
echo_stat
|
echo_stat
|
||||||
@ -403,6 +405,7 @@ function push_gs {
|
|||||||
## Smart Sync Function
|
## Smart Sync Function
|
||||||
function smart_gs {
|
function smart_gs {
|
||||||
md5_compare
|
md5_compare
|
||||||
|
backup_settime
|
||||||
|
|
||||||
if [ -f "${LOG_PATH}/${HISTORY_MD5}" ]
|
if [ -f "${LOG_PATH}/${HISTORY_MD5}" ]
|
||||||
then
|
then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user