Introducing fpart - a file partitioning tool
m.seaman at infracaninophile.co.uk
Sat Jan 7 11:48:37 UTC 2012
On 07/01/2012 10:33, Torfinn Ingolfsen wrote:
> On Sat, Jan 7, 2012 at 5:10 AM, andrew clarke <mail at ozzmosis.com> wrote:
>> On Fri 2012-01-06 11:36:56 UTC+0100, Ganael LAPLANCHE (ganael.laplanche at martymac.org) wrote:
>>> Have you ever wondered how you could split a file tree into parts of the
>>> same size, or into parts with a limited size or file number ?
>>> I have developed a small BSD-licensed tool called fpart that can do that
>>> for you (see http://contribs.martymac.org and
>>> This small C program will crawl a given set of file or directory paths,
>>> organize them and print resulting partitions. This can be useful to e.g.
>>> launch several rsync(1) in parallel or store files on media of limited size.
>> Interesting! Thanks. I see there's a similar program called
>> GAFFitter in the Ports tree (sysutils/gaffitter)...
>> "Genetic Algorithm File Fitter, or just GAFFitter, is a command-line
>> software written in C++ that arranges--via a genetic algorithm--an
>> input list of items or files/directories into volumes of a certain
>> capacity (target), such as CD or DVD, in a way that the total wastage
>> is minimized. By smartly arranging the input list, GAFFitter fits
>> better the given items and so optimizes (reduces) the number of
>> required volumes to pack them.
>> Currently, GAFFitter runs on GNU/Linux and other POSIX systems, but it
>> is designed in such manner that should be easily extended to non-POSIX
>> operating environment."
> FYI, ports also has sysutils/lxsplit.
> FreeBSD base has split(1) and csplit(1).
> Just in case anyone thinks this is a new idea.
Ummm... split(1), csplit(1) etc operate on individual files, turning
them into many smaller files.
fpart and gaffitter operate on a collection of files, sorting them into
different bins by various criteria. Quite a different concept.
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matthew at infracaninophile.co.uk Kent, CT11 9PW
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 267 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20120107/9465eaa5/signature.pgp
More information about the freebsd-ports