[Bug 245748] New port: archivers/tar-stream-chunker streams stdin of unknown size as a tar to stdout

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Apr 19 21:33:26 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=245748

            Bug ID: 245748
           Summary: New port: archivers/tar-stream-chunker streams stdin
                    of unknown size as a tar to stdout
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs at FreeBSD.org
          Reporter: igor.ostapenko at pm.me

Created attachment 213578
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=213578&action=edit
tar-stream-chunker.diff

Splits stdin of unknown size onto chunks of given size and collects such chunk
files as a TAR archive what is written to stdout.

Initial motivation was to use it as a packer of a data stream what pipes it to
https://tarsnap.com for backup purposes, with a requirement of low and more
predictable memory consumption. And the problem solved here is that TAR file
header should specify size of a file, but it's unknown due to the nature of
input data stream.

The following real case could be an example:
$ pg_dump ... | tar_stream_chunker ... | tarsnap -c ... @-

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list