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:
parent
76e6094247
commit
72830a4647
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue