ckolivas / lrzip

Long Range Zip
http://lrzip.kolivas.org
GNU General Public License v2.0
618 stars 76 forks source link

Please make it so that lrztar supports the -e flag #103

Closed stormdragon2976 closed 3 years ago

stormdragon2976 commented 5 years ago

Would it be possible to add the support for encryption to the lrztar command? It would be nice to compress a directory and password protect it all at the same time.

pete4abw commented 5 years ago

Would it be possible to add the support for encryption to the lrztar command? It would be nice to compress a directory and password protect it all at the same time.

I took a look at this. the -e option does not work when tar output is piped to lrzip. Even the

tar --use-compress-program="lrzip options..."

won't work for the same reason.

However, as a workaround, you can use the tar command directly and then execute lrzip after. Something like this. The && will run lrzip if tar is successful.

tar -cf filedir.tar filedir && lrzip -e -n filedir.tar

ckolivas commented 3 years ago

Not realistically possible, sorry.