Friday, June 3, 2016

mothballing a compressed file... "max xz tarballs... xz" extended

In a prior note.. I showed a simple one line to compress, directories.

but what happens when you need to make the compressed file not obviously a tarball..   ie. moving the file from system to system triggers huge delays due to virus scanning trying to open the file up, but eventually giving up due to timeouts..  it's a waste of time and the files were scanned on the origional machine prior to compression and will be scanned at the final machine as the tarball contents are written out the the drive again.

the answer is simple..   pipe it through base64

XZ_OPT=-9e tar cJf tarfile.tar.xz directory 

becomes

XZ_OPT=-9e tar cJf directory | base64 - > /tarfile.tar.xz.base64

In my case, the tar and .xz are giveaways for the scanner as well, so rename the contents as approprate...

References:

http://strayink.blogspot.com/2016/06/max-xz-tarballs-xz.html


Thursday, June 2, 2016

visudo with nano

export EDITOR=nano && sudo -E visudo
 from 
http://ubuntuforums.org/showthread.php?t=790286 

Wednesday, June 1, 2016

max xz tarballs... xz

XZ_OPT=-9e tar cJf tarfile.tar.xz directory
 
from
 
http://unix.stackexchange.com/questions/28976/how-to-xz-a-directory-with-tar-using-maximum-compression