When using tar for backups I'd like to create a separate list of the files that is included in the archive for storing alongside the backup tarball.
I also want to be able to store the error messages from tar in a log.
Solutions that's not so good:
tar --verbose...&> filelist.txtBut this would give errors + file list in one file.tar --listafter the tarball has been created. But this takes a long time.
Is there some way to get the file list and store it in a separate file at the same time as I'm rolling the ball for the first time?
tar? – Jasper Apr 15 '14 at 9:33tar -vis showing both) – Ouki Apr 15 '14 at 9:38--index-file=FILE– Johan Apr 15 '14 at 12:30tar -cvf foo.tar *is the list of files. What is the "all output" that you want to avoid? – terdon♦ Apr 15 '14 at 14:00