<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: splittar</title>
	<atom:link href="http://atlee.ca/blog/2006/01/26/splittar/feed/" rel="self" type="application/rss+xml" />
	<link>http://atlee.ca/blog/2006/01/26/splittar/</link>
	<description>programming, photography, media, and anything else that strikes my fancy</description>
	<lastBuildDate>Fri, 27 Jan 2012 19:08:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Sabuj Pattanayek</title>
		<link>http://atlee.ca/blog/2006/01/26/splittar/comment-page-1/#comment-88807</link>
		<dc:creator>Sabuj Pattanayek</dc:creator>
		<pubDate>Fri, 26 Aug 2011 04:15:31 +0000</pubDate>
		<guid isPermaLink="false">http://atlee.ca/blog/software/splittar/#comment-88807</guid>
		<description>http://unix.stackexchange.com/questions/18628/generating-sets-of-files-that-fit-on-a-given-media-size-for-tar-t/19449#19449

I&#039;ll make some modifications to your script when I get some time to just spit out the list of files for input to tar -T</description>
		<content:encoded><![CDATA[<p><a href="http://unix.stackexchange.com/questions/18628/generating-sets-of-files-that-fit-on-a-given-media-size-for-tar-t/19449#19449" rel="nofollow">http://unix.stackexchange.com/questions/18628/generating-sets-of-files-that-fit-on-a-given-media-size-for-tar-t/19449#19449</a></p>
<p>I&#8217;ll make some modifications to your script when I get some time to just spit out the list of files for input to tar -T</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://atlee.ca/blog/2006/01/26/splittar/comment-page-1/#comment-43706</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Mon, 15 Sep 2008 16:16:26 +0000</pubDate>
		<guid isPermaLink="false">http://atlee.ca/blog/software/splittar/#comment-43706</guid>
		<description>Well, I went to the trouble of stripping the SGML tags from the man page and cleaning it up a bit.  Hope this is helpful to someone else.

create multiple tar files

  splittar

  -h&#124;--help
  --version
  -f&#124;--output outputfile
  -m&#124;--maxsize maxsize
  -n&#124;--numopen maxopen
  -r&#124;--ratioweight weight
  -x&#124;--dontapprox
  -z&#124;--gzip
  -j&#124;--bzip2
  -p&#124;--plain
  -d&#124;--debug
  -v&#124;--verbose
  -q&#124;--quiet
  --profile
  file


DESCRIPTION

splittar allows you to create one or more
tar files from a set of data where each of the generated tar files is
less than a specified maximum size.

Each tar file is a proper, self-contained tar file.  Other methods of
backing up data to removable media requires a tar file to be split,
making tar file n useless without files 1,...,n-1.


OPTIONS

    -h&#124;--help

      Outputs a brief usage message and exits

    --version

      Outputs splittar&#039;s version and
      exits

    -f&#124;--output outputfile

      You MUST specify either -f or
        --output to specify the name of the output tar
        file(s).  Output to standard output is NOT supported since there
        is no simple way to indicate where breaks between files would be.

        The files created by splittar will be
        named according to this option, with a suffix appended to the
        portion before the filename extension indicating each file&#039;s
        position in the sequence.  See the EXAMPLES section below.

    -m&#124;--maxsize maxsize

        Specify how large each file generated by
            splittar will be.  The size can be
            specified in bytes (by default).  You can also specify a
            number followed by one of the following suffixes:

                KB = 1024 bytes
                MB = 1024 KB
                GB = 1024 MB
                TB = 1024 GB

            One of the following units may also be used:

                CD = 700 MB
                CD650 = 650 MB
                DVD = 4699979766 bytes
                DVD3 = 1566572544 bytes

            DVD3 can be useful for creating files which fit onto
            a DVD.  The maximum file size for an ISO9660 filesystem is
            around 2GB, so the value for DVD3 was chosen to be less
            than 2GB and allow 3 of these files to fit onto a single
            layer DVD nicely.
            The default value is CD.

    -n&#124;--numopen maxopen

        How many tar files splittar should
        keep open simultaneously.
        Keeping multiple tar files open simultaneously can make the
        resulting files more consistent in size.  When adding a file to
        the tar files, splittar tries to
        determine if the file will fit in one of the output files.  If
        a file is too big for one output file, the next one is tried
        until either the file will fit, or until there are no more
        output files to try (in which case a new file is opened).  By
        keeping more files open, files can be created that are as close
        as possible to the maximum size.
        One side effect of this option is that files may appear
        out of order in the resulting tar files.  If this is a concern,
        set this option to 1.
        Setting this option to 0 means that
        splittar will keep an unlimited number
        of tar files open.  The overhead per tar file is not that
        large, so this is the recommended setting.
        The default value is 0 (unlimited).

    -r&#124;--ratioweight weight

        Sets the weight assigned to the estimated size of a file
        in the archive as calculated by multiplying the compression
        ratio to date by the file&#039;s actual size.

        A file&#039;s estimated size in the archive is used to determine if
        the file should be included in one of the open archives, or if
        a new archive should be started.  The estimated size is a
        weighted average between the actual file size, and the file
        size multiplied by the current compression ratio.  The ratio
        weight parameter controls how these values are combined.  A
        value of 0.0 means that the compression ratio has no influence
        on the estimated size at all (the estimated file size equals
        the actual file size).
        The default value is 1.0 (assume the current file will
        compress exactly as well as all the previous files)

    -x&#124;--dontapprox

        Set the ratio weight to 0.0

    -d&#124;--debug

        Print out debug output

    -v&#124;--verbose

        Print out verbose output (less than debug)

    -q&#124;--quiet

        Print out hardly anything

    --profile

        Generates profile data in a file called &#039;splittar.prof&#039;
        in the current directory

    file ...

      List of files and/or directories to archive.


RETURN VALUE

Returns 0 on success
Returns 1 when some files could not be added because access was denied
Returns 2 when an output file could not be created
Returns 254 on an uncaught exception
Returns 255 when the program was interrupted


ERRORS

Return codes, either exit status or errno settings.


EXAMPLES

splittar -f example.tgz -m CD /home

will generate CD-sized files named example-1.tgz, example-2.tgz, etc.
from the data contained in /home


ENVIRONMENT

Environment variables this program might care about.


FILES

All files used by the program. Typical usage is like this:

    /usr/man
    default man tree

    /usr/man/man*/*.*
    unformatted (nroff source) man pages


NOTES

splittar may generate files larger than the
specified maximum in some cases.  Currently it estimates how much a tar
file will grow based on the current compression ratio.  If the size of a
candidate file multiplied by the current compression ratio added to the
current size of the tar file would exceed the maximum size, then a new
file is started.  If the candidate file does not compress at least as
well as previous files, then the resulting tar file may be too large.
In addition, the resuling tar file may be too large by a few
kilobytes due to buffering in underlying libraries.
In practise these issues have not been a problem.
Future versions of splittar will attempt
to address these problems.


CAVEATS

At least one file will be included in each file.  Depending on
the compression used, this could mean that the resulting file could
exceed the specified maximum.

Future versions of splittar may address this by
giving the option to split files that are too large.


DIAGNOSTICS

splittar will output warnings if any of the
generated files exceed the maximum specified size.


BUGS

Things that are broken or just don&#039;t work quite right.


RESTRICTIONS

Bugs you don&#039;t plan to fix. :-)


AUTHOR

Chris AtLee


HISTORY

Programs derived from other sources sometimes have this.


SEE ALSO

tar(1)</description>
		<content:encoded><![CDATA[<p>Well, I went to the trouble of stripping the SGML tags from the man page and cleaning it up a bit.  Hope this is helpful to someone else.</p>
<p>create multiple tar files</p>
<p>  splittar</p>
<p>  -h|&#8211;help<br />
  &#8211;version<br />
  -f|&#8211;output outputfile<br />
  -m|&#8211;maxsize maxsize<br />
  -n|&#8211;numopen maxopen<br />
  -r|&#8211;ratioweight weight<br />
  -x|&#8211;dontapprox<br />
  -z|&#8211;gzip<br />
  -j|&#8211;bzip2<br />
  -p|&#8211;plain<br />
  -d|&#8211;debug<br />
  -v|&#8211;verbose<br />
  -q|&#8211;quiet<br />
  &#8211;profile<br />
  file</p>
<p>DESCRIPTION</p>
<p>splittar allows you to create one or more<br />
tar files from a set of data where each of the generated tar files is<br />
less than a specified maximum size.</p>
<p>Each tar file is a proper, self-contained tar file.  Other methods of<br />
backing up data to removable media requires a tar file to be split,<br />
making tar file n useless without files 1,&#8230;,n-1.</p>
<p>OPTIONS</p>
<p>    -h|&#8211;help</p>
<p>      Outputs a brief usage message and exits</p>
<p>    &#8211;version</p>
<p>      Outputs splittar&#8217;s version and<br />
      exits</p>
<p>    -f|&#8211;output outputfile</p>
<p>      You MUST specify either -f or<br />
        &#8211;output to specify the name of the output tar<br />
        file(s).  Output to standard output is NOT supported since there<br />
        is no simple way to indicate where breaks between files would be.</p>
<p>        The files created by splittar will be<br />
        named according to this option, with a suffix appended to the<br />
        portion before the filename extension indicating each file&#8217;s<br />
        position in the sequence.  See the EXAMPLES section below.</p>
<p>    -m|&#8211;maxsize maxsize</p>
<p>        Specify how large each file generated by<br />
            splittar will be.  The size can be<br />
            specified in bytes (by default).  You can also specify a<br />
            number followed by one of the following suffixes:</p>
<p>                KB = 1024 bytes<br />
                MB = 1024 KB<br />
                GB = 1024 MB<br />
                TB = 1024 GB</p>
<p>            One of the following units may also be used:</p>
<p>                CD = 700 MB<br />
                CD650 = 650 MB<br />
                DVD = 4699979766 bytes<br />
                DVD3 = 1566572544 bytes</p>
<p>            DVD3 can be useful for creating files which fit onto<br />
            a DVD.  The maximum file size for an ISO9660 filesystem is<br />
            around 2GB, so the value for DVD3 was chosen to be less<br />
            than 2GB and allow 3 of these files to fit onto a single<br />
            layer DVD nicely.<br />
            The default value is CD.</p>
<p>    -n|&#8211;numopen maxopen</p>
<p>        How many tar files splittar should<br />
        keep open simultaneously.<br />
        Keeping multiple tar files open simultaneously can make the<br />
        resulting files more consistent in size.  When adding a file to<br />
        the tar files, splittar tries to<br />
        determine if the file will fit in one of the output files.  If<br />
        a file is too big for one output file, the next one is tried<br />
        until either the file will fit, or until there are no more<br />
        output files to try (in which case a new file is opened).  By<br />
        keeping more files open, files can be created that are as close<br />
        as possible to the maximum size.<br />
        One side effect of this option is that files may appear<br />
        out of order in the resulting tar files.  If this is a concern,<br />
        set this option to 1.<br />
        Setting this option to 0 means that<br />
        splittar will keep an unlimited number<br />
        of tar files open.  The overhead per tar file is not that<br />
        large, so this is the recommended setting.<br />
        The default value is 0 (unlimited).</p>
<p>    -r|&#8211;ratioweight weight</p>
<p>        Sets the weight assigned to the estimated size of a file<br />
        in the archive as calculated by multiplying the compression<br />
        ratio to date by the file&#8217;s actual size.</p>
<p>        A file&#8217;s estimated size in the archive is used to determine if<br />
        the file should be included in one of the open archives, or if<br />
        a new archive should be started.  The estimated size is a<br />
        weighted average between the actual file size, and the file<br />
        size multiplied by the current compression ratio.  The ratio<br />
        weight parameter controls how these values are combined.  A<br />
        value of 0.0 means that the compression ratio has no influence<br />
        on the estimated size at all (the estimated file size equals<br />
        the actual file size).<br />
        The default value is 1.0 (assume the current file will<br />
        compress exactly as well as all the previous files)</p>
<p>    -x|&#8211;dontapprox</p>
<p>        Set the ratio weight to 0.0</p>
<p>    -d|&#8211;debug</p>
<p>        Print out debug output</p>
<p>    -v|&#8211;verbose</p>
<p>        Print out verbose output (less than debug)</p>
<p>    -q|&#8211;quiet</p>
<p>        Print out hardly anything</p>
<p>    &#8211;profile</p>
<p>        Generates profile data in a file called &#8216;splittar.prof&#8217;<br />
        in the current directory</p>
<p>    file &#8230;</p>
<p>      List of files and/or directories to archive.</p>
<p>RETURN VALUE</p>
<p>Returns 0 on success<br />
Returns 1 when some files could not be added because access was denied<br />
Returns 2 when an output file could not be created<br />
Returns 254 on an uncaught exception<br />
Returns 255 when the program was interrupted</p>
<p>ERRORS</p>
<p>Return codes, either exit status or errno settings.</p>
<p>EXAMPLES</p>
<p>splittar -f example.tgz -m CD /home</p>
<p>will generate CD-sized files named example-1.tgz, example-2.tgz, etc.<br />
from the data contained in /home</p>
<p>ENVIRONMENT</p>
<p>Environment variables this program might care about.</p>
<p>FILES</p>
<p>All files used by the program. Typical usage is like this:</p>
<p>    /usr/man<br />
    default man tree</p>
<p>    /usr/man/man*/*.*<br />
    unformatted (nroff source) man pages</p>
<p>NOTES</p>
<p>splittar may generate files larger than the<br />
specified maximum in some cases.  Currently it estimates how much a tar<br />
file will grow based on the current compression ratio.  If the size of a<br />
candidate file multiplied by the current compression ratio added to the<br />
current size of the tar file would exceed the maximum size, then a new<br />
file is started.  If the candidate file does not compress at least as<br />
well as previous files, then the resulting tar file may be too large.<br />
In addition, the resuling tar file may be too large by a few<br />
kilobytes due to buffering in underlying libraries.<br />
In practise these issues have not been a problem.<br />
Future versions of splittar will attempt<br />
to address these problems.</p>
<p>CAVEATS</p>
<p>At least one file will be included in each file.  Depending on<br />
the compression used, this could mean that the resulting file could<br />
exceed the specified maximum.</p>
<p>Future versions of splittar may address this by<br />
giving the option to split files that are too large.</p>
<p>DIAGNOSTICS</p>
<p>splittar will output warnings if any of the<br />
generated files exceed the maximum specified size.</p>
<p>BUGS</p>
<p>Things that are broken or just don&#8217;t work quite right.</p>
<p>RESTRICTIONS</p>
<p>Bugs you don&#8217;t plan to fix. <img src='http://atlee.ca/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>AUTHOR</p>
<p>Chris AtLee</p>
<p>HISTORY</p>
<p>Programs derived from other sources sometimes have this.</p>
<p>SEE ALSO</p>
<p>tar(1)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://atlee.ca/blog/2006/01/26/splittar/comment-page-1/#comment-43695</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Mon, 15 Sep 2008 08:05:24 +0000</pubDate>
		<guid isPermaLink="false">http://atlee.ca/blog/software/splittar/#comment-43695</guid>
		<description>Thanks for writing splittar, but it would be more helpful if you&#039;d include an online copy of the man page (at least the full syntax).  The download package only comes with a man page in .sgml format, which apparently needs to be converted to regular man page format using a tool called docbook-to-man, which doesn&#039;t come standard on my system and which would require me to install about 6 other unwanted tools in the process.  No thanks.  I&#039;ll be trying out a competing script (tarlimit) first because at least I can figure out how to use it without an hour of legwork.</description>
		<content:encoded><![CDATA[<p>Thanks for writing splittar, but it would be more helpful if you&#8217;d include an online copy of the man page (at least the full syntax).  The download package only comes with a man page in .sgml format, which apparently needs to be converted to regular man page format using a tool called docbook-to-man, which doesn&#8217;t come standard on my system and which would require me to install about 6 other unwanted tools in the process.  No thanks.  I&#8217;ll be trying out a competing script (tarlimit) first because at least I can figure out how to use it without an hour of legwork.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

