Browse Source

pigz: add directory compression example (#3139)

mtonsmann 5 years ago
parent
commit
613e171318
1 changed files with 4 additions and 0 deletions
  1. 4 0
      pages/common/pigz.md

+ 4 - 0
pages/common/pigz.md

@@ -15,6 +15,10 @@
 
 
 `pigz -0 -p{{4}} {{filename}}`
 `pigz -0 -p{{4}} {{filename}}`
 
 
+- Compress a directory using tar:
+
+`tar cf - {{path/to/directory}} | pigz > {{filename}}.tar.gz`
+
 - Decompress a file:
 - Decompress a file:
 
 
 `pigz -d {{archive.gz}}`
 `pigz -d {{archive.gz}}`