7za

From Yefu's notes
Jump to: navigation, search

tar cf - /var/www | 7za a -m0=lzma -mx=4 -si -v22m /tmp/www_`date +\%d\%m\%y`.tar.7z

To encrypt:

7za a pw.7z *.txt -pSECRET -mhe=on

7za: name and path of 7-Zip executable a: add to archive pw.7z: name of destination archive

  • .txt: add all text files to destination archive

-pSECRET: specify the password "SECRET"

-mhe=on: encrypt header, i.e., file names.

More:


http://www.dotnetperls.com/7-zip-examples


-mx=9 level of compression = 9 (Ultra)