I have a gigantic list of files on a text files. This list is passed to tar, like this:
cat list.txt | xargs tar rvf archive.tar --ignore-failed-read
The problem is that some files that are on the list don't exist anymore. So tar keeps saying "Cannot stat: No such file or directory...". I have no problems with that, however when some of these messages appear, tar hungs, and wait some minutes to resume the actions, making the backup very slow. Any ideas on how I can filter only the existing files to tar?