3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

tar + brotli コマンド

Last updated at Posted at 2019-09-14

圧縮

tar でアーカイブしたものを標準出力に吐き出して brotli で圧縮する。

$ tar -cf - dir | brotli -o dir.tar.br

解凍

$ brotli -d dir.tar.br -c | tar -xf -

おまけ

pv で圧縮進捗率を見る

$ tar -cf - dir | pv -p -t -e -r -b -s $(du -sb dir | awk '{print $1}') | brotli -o dir.tar.br
3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?