* 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:
Michael Stanclift 2021-02-04 10:47:40 -06:00 committed by GitHub
parent 13dfc7d2d0
commit f6f69201b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 14 additions and 4 deletions

View File

@ -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 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
### The Container Release

View File

@ -1 +1 @@
3.2.5
3.2.6

View File

@ -3,7 +3,7 @@ SCRIPT_START=$SECONDS
# GRAVITY SYNC BY VMSTAN #####################
PROGRAM='Gravity Sync'
VERSION='3.2.5'
VERSION='3.2.6'
# 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

View File

@ -100,7 +100,7 @@ function backup_remote_cname {
}
function backup_cleanup {
MESSAGE="Cleaning Up Old Backups"
MESSAGE="Scrubbing ${BACKUP_RETAIN} Redundant Antimatter Containment Pods"
echo_stat
find ${LOCAL_FOLDR}/${BACKUP_FOLD}/$(date +%Y)*.backup -mtime +${BACKUP_RETAIN} -type f -delete

View File

@ -23,5 +23,7 @@ function task_compare {
previous_md5
md5_compare
backup_cleanup
exit_withchange
}

View File

@ -125,6 +125,7 @@ function md5_compare {
else
MESSAGE="No Replication Required"
echo_info
backup_cleanup
exit_nochange
fi
}

View File

@ -219,6 +219,7 @@ function pull_gs {
pull_gs_cname
pull_gs_reload
md5_recheck
backup_cleanup
logs_export
exit_withchange

View File

@ -165,8 +165,9 @@ function push_gs {
push_gs_cust
push_gs_cname
push_gs_reload
md5_recheck
backup_cleanup
logs_export
exit_withchange
}

View File

@ -212,6 +212,7 @@ function smart_gs {
fi
md5_recheck
backup_cleanup
logs_export
exit_withchange