From: Sergey Matveev Date: Wed, 13 Nov 2019 13:10:45 +0000 (+0300) Subject: Replace xz compression examples with zstd ones X-Git-Tag: v5.0.0^2~8 X-Git-Url: http://www.git.cypherpunks.ru/?a=commitdiff_plain;h=1839c0c82da418c4242764d4439aa879ee0a9494;p=nncp.git Replace xz compression examples with zstd ones --- diff --git a/doc/integration.texi b/doc/integration.texi index a654545..d1f1af9 100644 --- a/doc/integration.texi +++ b/doc/integration.texi @@ -183,8 +183,8 @@ that will create @file{www.example.com} directory with all files necessary to view @file{page.html} web page. You can create single file compressed tarball with that directory and send it to remote node: @verbatim -$ tar cf - www.example.com | xz -9 | - nncp-file - remote.node:www.example.com-page.tar.xz +$ tar cf - www.example.com | zstd | + nncp-file - remote.node:www.example.com-page.tar.zst @end verbatim But there are multi-paged articles, there are the whole interesting @@ -216,8 +216,9 @@ $ wget \ That command will create uncompressed @file{www.example_com-XXX.warc} web archive. By default, WARCs are compressed using @url{https://en.wikipedia.org/wiki/Gzip, gzip}, but, in example above, -we have disabled it to compress with stronger @command{xz}, before -sending via @command{nncp-file}. +we have disabled it to compress with stronger and faster +@url{https://en.wikipedia.org/wiki/Zstd, zstd}, before sending via +@command{nncp-file}. There are plenty of software acting like HTTP proxy for your browser, allowing to view that WARC files. However you can extract files from diff --git a/doc/warcer.sh b/doc/warcer.sh index 9448592..c5582ef 100755 --- a/doc/warcer.sh +++ b/doc/warcer.sh @@ -19,6 +19,6 @@ wget \ --no-warc-compression \ --no-warc-keep-log \ $cmdline || : -xz -9 "$name".warc -nncp-file -nice $NNCP_NICE "$name".warc.xz $NNCP_SENDER: +zstd --rm "$name".warc +nncp-file -nice $NNCP_NICE "$name".warc.zst $NNCP_SENDER: rm -r $tmp diff --git a/doc/wgeter.sh b/doc/wgeter.sh index 5f80d81..dea60fb 100755 --- a/doc/wgeter.sh +++ b/doc/wgeter.sh @@ -5,6 +5,6 @@ read cmdline tmp=$(mktemp) wget --output-document=$tmp $cmdline -xz -9 $tmp -nncp-file -nice $NNCP_NICE $tmp.xz $NNCP_SENDER:$name.xz -rm $tmp.xz +zstd --rm $tmp +nncp-file -nice $NNCP_NICE $tmp.zst $NNCP_SENDER:$name.zst +rm $tmp.zst