{{tag>utils shell}}

====== 7z ======

===== Установка =====

  * apt-get install p7zip-full

===== Архивация =====

  * 7za a ./dump.sql.7z ./dump.sql
    * a – add to archive
  * tar -cpf – /home/goober | 7za a -si -mx=9 /tmp/myarchive.tar.7z 1>/dev/null 2>&1

===== Разархивация =====

  * 7za e ./dump.sql.7z 
    * x - will eXtract with the full paths
    * e - will just extract all the files into the same directory, which is probably not what you want.
