From 72830a4647188d34da7656ea2d166347c57333e2 Mon Sep 17 00:00:00 2001 From: jll2 Date: Fri, 26 Jun 2009 14:54:28 -0700 Subject: [PATCH] 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. --- ccollect.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ccollect.sh b/ccollect.sh index 65e10d9..71c032b 100755 --- a/ccollect.sh +++ b/ccollect.sh @@ -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