fixing bad logic that would cause the backup to halt on large dump