Автор: funk2256, 5 месяца назад, написана на языке Plain Text.
Встраивание на сайт
  1. # **Сжатие:**
  2.  
  3. ```shell
  4. tar cf - <files> -P | pv -s $(du -sb <files> | awk '{print $1}') | gzip > <some .tar.gz file>
  5. ```
  6. Где:
  7.  
  8. - `<files>` is the root-mounted (i.e. starts with /) path to the files
  9. - `<some .tar.gz file>` is the output tarball to create
  10.  
  11. # **Распаковка:**
  12.  
  13. ```shell
  14. pv <some .tar.gz file> | tar -xvzf - -C <some directory>
  15. ```
  16.  
  17. Где:
  18.  
  19. - `<some .tar.gz file>` is the path to the tarball to extract
  20. - `<some directory>` is the directory to extract the tarball to