Capturing tar output

Wojciech Puchar wojtek at
Wed Sep 10 19:17:29 UTC 2008

> I am using the following command to perform backups each evening.
> /usr/local/gtar/bin/tar -C /usr/home/photos --listed-incremental \
> /var/db/photos.snar -cvf - ./ | /usr/local/bin/gpg --encrypt --recipient \
> "recipient" | dd of=/dev/nsa0 obs=128K
> Since I am having tar write the output of the command to stdout is it
> possible  to capture the names of the files being displayed as a result of
> the -v option?
> If so, how can this be done?  I am not having any luck.

redirect stderr with "2>" operator

More information about the freebsd-questions mailing list