If the user specifies "delete_incomplete", this patch makes it

so all incomplete backups are deleted, not just the ones with
the particular interval that the user specified.

The advantage of this is that those to-be-deleted incomplete
backups will not interfere with calculations required for
automatic interval selection.
This commit is contained in:
jll2 2009-06-26 14:54:28 -07:00
parent 76e6094247
commit 72830a4647

View file

@ -452,7 +452,7 @@ while [ "${i}" -lt "${no_sources}" ]; do
#
# Check for incomplete backups
#
pcmd ls -1 "$ddir/${INTERVAL}"*".${c_marker}" 2>/dev/null | while read marker; do
pcmd ls -1 "${ddir}/"*".${c_marker}" 2>/dev/null | while read marker; do
incomplete="$(echo ${marker} | sed "s/\\.${c_marker}\$//")"
_techo "Incomplete backup: ${incomplete}"
if [ -f "${c_delete_incomplete}" ]; then