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.txt
But this would give errors + file list in one file.tar --list
after 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
?tar -v
is showing both)--index-file=FILE
tar -cvf foo.tar *
is the list of files. What is the "all output" that you want to avoid?