Skip to main content
1 of 4

So how can I instruct tar to ignore missing input files?

It's really simple: just use the --ignore-failed-read on your tar command:

$/bin/tar -cz --ignore-failed-read data config myfile 2>/dev/null | /bin/dd of=backup.tar 2>/dev/null

$ echo ${PIPESTATUS[0]}

> 0