create log for an encrypted tar

Posted by magiza83 on Server Fault See other posts from Server Fault or by magiza83
Published on 2012-11-23T08:45:22Z Indexed on 2012/11/23 11:02 UTC
Read the original article Hit count: 262

Filed under:
|
|
|
|

I want to create an encrypted tar but also I want to have a log of what tar has compressed, I'm using the following command:

tar -cvvf - --files-from=/root/backup.cfg | openssl des3 -salt -k backuppass | dd of=/root/tmp/back.encrypted

But I need to have a log of tar's stdout. I don't know how to get it, because If I use ">" in tar command openssl result is not correct.

I've also checked tar manual hoping to find some option to write stdout to a file, but I have found nothing.

any help?

thanks & Regards.

© Server Fault or respective owner

Related posts about logging

Related posts about redirect