mirror of
https://github.com/vmstan/gravity-sync.git
synced 2024-08-30 18:22:11 +00:00
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>
This commit is contained in:
parent
13dfc7d2d0
commit
f6f69201b4
@ -47,6 +47,10 @@ The `./gravity-sync.sh restore` process completely revamped:
|
|||||||
- Correct error where Docker based installs would fail to restart if Docker exec commands required sudo privileges.
|
- Correct error where Docker based installs would fail to restart if Docker exec commands required sudo privileges.
|
||||||
- Correct error where setup script would prompt twice for Local/Remote DNSMASQ directories when using Docker.
|
- Correct error where setup script would prompt twice for Local/Remote DNSMASQ directories when using Docker.
|
||||||
|
|
||||||
|
#### 3.2.6
|
||||||
|
|
||||||
|
- Adds old backup removal tasks into push/pull/sync/compare functions.
|
||||||
|
|
||||||
## 3.1
|
## 3.1
|
||||||
|
|
||||||
### The Container Release
|
### The Container Release
|
||||||
|
@ -3,7 +3,7 @@ SCRIPT_START=$SECONDS
|
|||||||
|
|
||||||
# GRAVITY SYNC BY VMSTAN #####################
|
# GRAVITY SYNC BY VMSTAN #####################
|
||||||
PROGRAM='Gravity Sync'
|
PROGRAM='Gravity Sync'
|
||||||
VERSION='3.2.5'
|
VERSION='3.2.6'
|
||||||
|
|
||||||
# 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
|
||||||
|
@ -100,7 +100,7 @@ function backup_remote_cname {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function backup_cleanup {
|
function backup_cleanup {
|
||||||
MESSAGE="Cleaning Up Old Backups"
|
MESSAGE="Scrubbing ${BACKUP_RETAIN} Redundant Antimatter Containment Pods"
|
||||||
echo_stat
|
echo_stat
|
||||||
|
|
||||||
find ${LOCAL_FOLDR}/${BACKUP_FOLD}/$(date +%Y)*.backup -mtime +${BACKUP_RETAIN} -type f -delete
|
find ${LOCAL_FOLDR}/${BACKUP_FOLD}/$(date +%Y)*.backup -mtime +${BACKUP_RETAIN} -type f -delete
|
||||||
|
@ -23,5 +23,7 @@ function task_compare {
|
|||||||
|
|
||||||
previous_md5
|
previous_md5
|
||||||
md5_compare
|
md5_compare
|
||||||
|
backup_cleanup
|
||||||
|
|
||||||
exit_withchange
|
exit_withchange
|
||||||
}
|
}
|
@ -125,6 +125,7 @@ function md5_compare {
|
|||||||
else
|
else
|
||||||
MESSAGE="No Replication Required"
|
MESSAGE="No Replication Required"
|
||||||
echo_info
|
echo_info
|
||||||
|
backup_cleanup
|
||||||
exit_nochange
|
exit_nochange
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -219,6 +219,7 @@ function pull_gs {
|
|||||||
pull_gs_cname
|
pull_gs_cname
|
||||||
pull_gs_reload
|
pull_gs_reload
|
||||||
md5_recheck
|
md5_recheck
|
||||||
|
backup_cleanup
|
||||||
|
|
||||||
logs_export
|
logs_export
|
||||||
exit_withchange
|
exit_withchange
|
||||||
|
@ -165,8 +165,9 @@ function push_gs {
|
|||||||
push_gs_cust
|
push_gs_cust
|
||||||
push_gs_cname
|
push_gs_cname
|
||||||
push_gs_reload
|
push_gs_reload
|
||||||
|
|
||||||
md5_recheck
|
md5_recheck
|
||||||
|
backup_cleanup
|
||||||
|
|
||||||
logs_export
|
logs_export
|
||||||
exit_withchange
|
exit_withchange
|
||||||
}
|
}
|
@ -212,6 +212,7 @@ function smart_gs {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
md5_recheck
|
md5_recheck
|
||||||
|
backup_cleanup
|
||||||
|
|
||||||
logs_export
|
logs_export
|
||||||
exit_withchange
|
exit_withchange
|
||||||
|
Loading…
Reference in New Issue
Block a user