Mute tar "file changed as we read it" warnings

Bug #1342034 reported by Caspar Clemens Mierau
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bashup
New
Undecided
Unassigned

Bug Description

When backing up a directory via "tree" with changing contents, the following tar warning occurs:

" [Mon Jul 14 04:40:02 UTC 2014] WARNING: tar had warnings: tar: var/cache/icinga: file changed as we read it
> /usr/lib/bashup/bashup_common.sh: line 509: ${warn}: ambiguous redirect"

It would be great being able to mute this warning, if you intentionally ignore it. You could either add the possibility to give parameters to the tar call or allow setting "--ignore-failed-read" explicitely.

Revision history for this message
Paweł Radecki (paweljradecki) wrote :

Hello Caspar Clemens,

Did you set a value for the WARN_LOG variable before running bashup?

Example:
# ... other variables set here
WARN_LOG=/var/log/bashup_warn.log

I had the same problem appearing:
"> /usr/lib/bashup/bashup_common.sh: line 509: ${warn}: ambiguous redirect"

which disappeared after setting a value to WARN_LOG.

Perhaps there is a way to use just bashup's combined log instead of warn log and error log separately but still have not discovered how to set this up.

--
Paweł Radecki

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.