<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="https://tanguy.ortolo.eu/blog/feed/rss/commentaires/" />
	<link>https://tanguy.ortolo.eu/blog/article134/bsdtar-change-archive-format</link>
	<language>en</language>
	<description>a blog about Debian and self-hosting</description>
	<lastBuildDate>Thu, 12 May 2016 14:07:00 +0000</lastBuildDate>
	<generator>PluXml</generator>
	<item>
		<title>Using bsdtar to change an archive format - Written by Romiras @ thursday 12 may 2016, 14:07</title> 
		<link>https://tanguy.ortolo.eu/blog/article134/bsdtar-change-archive-format/#c1463062041-1</link>
		<guid>https://tanguy.ortolo.eu/blog/article134/bsdtar-change-archive-format/#c1463062041-1</guid>
		<description>@Tanguy : Yes. Initially I thought archive should be extracted at first, like:

cat file.zip | bsdtar -xf- | bsdtar_pack_it_to_tar

but there was no need to do so.</description>
		<pubDate>Thu, 12 May 2016 14:07:00 +0000</pubDate>
		<dc:creator>Romiras</dc:creator>
	</item>
	<item>
		<title>Using bsdtar to change an archive format - Written by Tanguy @ thursday 12 may 2016, 14:02</title> 
		<link>https://tanguy.ortolo.eu/blog/article134/bsdtar-change-archive-format/#c1463061753-1</link>
		<guid>https://tanguy.ortolo.eu/blog/article134/bsdtar-change-archive-format/#c1463061753-1</guid>
		<description>@Romiras : Well yes, this is exactly what my article was about!</description>
		<pubDate>Thu, 12 May 2016 14:02:00 +0000</pubDate>
		<dc:creator>Tanguy</dc:creator>
	</item>
	<item>
		<title>Using bsdtar to change an archive format - Written by Romiras @ thursday 12 may 2016, 14:01</title> 
		<link>https://tanguy.ortolo.eu/blog/article134/bsdtar-change-archive-format/#c1463061661-1</link>
		<guid>https://tanguy.ortolo.eu/blog/article134/bsdtar-change-archive-format/#c1463061661-1</guid>
		<description>Finally I&amp;#039;ve found the way!
This worked for me:

wget -qO- http://example.org/file.zip | bsdtar -cf - @- &amp;gt; converted.tar

One can pass additional filters, for example:
cat file.zip | bsdtar -cf - @- | filter1 | filter2 | filter3</description>
		<pubDate>Thu, 12 May 2016 14:01:00 +0000</pubDate>
		<dc:creator>Romiras</dc:creator>
	</item>
	<item>
		<title>Using bsdtar to change an archive format - Written by Romiras @ thursday 12 may 2016, 13:22</title> 
		<link>https://tanguy.ortolo.eu/blog/article134/bsdtar-change-archive-format/#c1463059350-1</link>
		<guid>https://tanguy.ortolo.eu/blog/article134/bsdtar-change-archive-format/#c1463059350-1</guid>
		<description>@Tanguy : I want to convert from ZIP-archive to tarball on-the-fly through pipe. My Zip file can be located remotely or locally. For example if I read remote Zip

wget -qO- http://example.org/file.zip | bsdtar -xvf-

it will extract files locally. Instead I need to pass through pipe for additional filters, like nc, gzip or whatever.</description>
		<pubDate>Thu, 12 May 2016 13:22:00 +0000</pubDate>
		<dc:creator>Romiras</dc:creator>
	</item>
	<item>
		<title>Using bsdtar to change an archive format - Written by Tanguy @ thursday 12 may 2016, 13:15</title> 
		<link>https://tanguy.ortolo.eu/blog/article134/bsdtar-change-archive-format/#c1463058953-1</link>
		<guid>https://tanguy.ortolo.eu/blog/article134/bsdtar-change-archive-format/#c1463058953-1</guid>
		<description>@Romiras : That depends on what you have, and what you want to do exactly. Do you already have an archive, or do you want to create one? What do you want to do with it, do you want to transmit it to some remote host, allow people to donwload it, unpack it?</description>
		<pubDate>Thu, 12 May 2016 13:15:00 +0000</pubDate>
		<dc:creator>Tanguy</dc:creator>
	</item>
	<item>
		<title>Using bsdtar to change an archive format - Written by Romiras @ thursday 12 may 2016, 12:58</title> 
		<link>https://tanguy.ortolo.eu/blog/article134/bsdtar-change-archive-format/#c1463057920-1</link>
		<guid>https://tanguy.ortolo.eu/blog/article134/bsdtar-change-archive-format/#c1463057920-1</guid>
		<description>@Tanguy : I found your article very useful for me.

Can you advice how do I stream ZIP-archive as TAR-archive though pipe instead of unpacking files?</description>
		<pubDate>Thu, 12 May 2016 12:58:00 +0000</pubDate>
		<dc:creator>Romiras</dc:creator>
	</item>
	<item>
		<title>Using bsdtar to change an archive format - Written by pini @ tuesday 16 december 2014, 22:11</title> 
		<link>https://tanguy.ortolo.eu/blog/article134/bsdtar-change-archive-format/#c1418767886-1</link>
		<guid>https://tanguy.ortolo.eu/blog/article134/bsdtar-change-archive-format/#c1418767886-1</guid>
		<description>&amp;gt; it will store the whole archive in memory before starting to extract it.
Not true. It doesn&amp;#039;t need to. The PKZIP format doesn&amp;#039;t need this final index actually. It is there for redundancy. The very same information is available along the archive. That&amp;#039;s why &amp;#039;zip -FF&amp;#039; can repair a truncated archive.
Try this:
1- zip a folder with many files
2- split the archive in 2 pieces using &amp;#039;split&amp;#039;
3- cat &amp;lt;first part&amp;gt; | bsdtar xf -
This last step will successfully extract what is stored into the arhive until it encounters unexpected EOF.</description>
		<pubDate>Tue, 16 Dec 2014 22:11:00 +0000</pubDate>
		<dc:creator>pini</dc:creator>
	</item>
	<item>
		<title>Using bsdtar to change an archive format - Written by Tanguy @ monday 15 december 2014, 10:01</title> 
		<link>https://tanguy.ortolo.eu/blog/article134/bsdtar-change-archive-format/#c1418637678-1</link>
		<guid>https://tanguy.ortolo.eu/blog/article134/bsdtar-change-archive-format/#c1418637678-1</guid>
		<description>@pini : Yes, you can use bsdtar to unzip in a stream, which can be useful for organizing your command line, but that will not provide the material advantages of streaming, as it will store the whole archive in memory before starting to extract it.

So my explanation still stands: ZIP is not a streamable format, as it does requires to store the full archive before being able to extract it, even though bsdtar can hide that and fake a streaming usage by storing it in memory.</description>
		<pubDate>Mon, 15 Dec 2014 10:01:00 +0000</pubDate>
		<dc:creator>Tanguy</dc:creator>
	</item>
		<title>Tanguy Ortolo - Using bsdtar to change an archive format - Comments</title> 
</channel>
</rss>