Updated a variable name to better reflect what it does

release/full-rewrite
capntack 8 months ago
parent d57708055d
commit 5582d6a115

@ -18,4 +18,4 @@ touch "${RSYNC_DEST_PATH}"/timestamp.fix
# Run retention policy
cd "${RSYNC_DEST}"
rm -rf `ls -t | tail -n +$(("${RSYNC_RETENTION_DAYS}"+2))`
rm -rf `ls -t | tail -n +$(("${RSYNC_RETENTION_KEEP_LAST}"+2))`

@ -57,7 +57,7 @@ readonly LOG_RETENTION='30'
## Set these vars
# readonly RSYNC_SOURCE='/path/to/dir/to/backup'
# readonly RSYNC_DEST='/path/to/dir/to/backup/to'
# readonly RSYNC_RETENTION_DAYS='7'
# readonly RSYNC_RETENTION_KEEP_LAST='7'
## Leave these vars be
# readonly RSYNC_MANIFEST="${SCRIPT_DIR}/rsyncManifest"

Loading…
Cancel
Save