Capturing tar output

Tom Marchand m0rchand at comcast.net
Wed Sep 10 14:20:59 UTC 2008


Trying using tee something like this:

/usr/local/gtar/bin/tar -C /usr/home/photos --listed-incremental \
 /var/db/photos.snar -cvf - ./ |tee outfile| /usr/local/bin/gpg --encrypt --recipient \
 "recipient" | dd of=/dev/nsa0 obs=128K



 -------------- Original message ----------------------
From: jhall at vandaliamo.net
> Ladies and Gentlemen,
> 
> 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.
> 
> Thanks,
> 
> 
> Jay
> 
> 
> 
> 
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"



More information about the freebsd-questions mailing list