[svlug] Script to split a large directory into smaller directories
Scott Henry
scotty at tenchiki.net
Mon Mar 15 11:59:59 PST 2004
On Mon, 15 Mar 2004 10:14:15 -0800, "Akbar S. Ahmed"
<akbar501 at dslextreme.com> wrote:
> Are there any ideas for the script specified below?
>
> Akbar S. Ahmed wrote:
> > Hi,
> >
> > I have a directory tree that is approx. 9GB that I need to
> > split into approx. 4.7GB size chunks so that the data can be
> > burned to DVD. I know that I'm definitely not the first
> > person to try this.
> >
> > So does anyone know of a good script for splitting a
> > directory tree into DVD-sized chunks?
> >
> > I would like a script that does not split files, which is
> > what the bulk of the scripts that I found do.
Look at the "sync2cd" script. It is a python script, available
from freshmeat.net. I've been playing with it a little bit, and
I think that it will do what you want. It basically looks at a
directory tree, and breaks it into "cd" (size-configurable)
chunks, and sends the output in a format as input to mkisofs. It
claims to also do incrementals after the initial breakup.
--
Scott Henry <scotty at rahul.net> /\/\/\ http://www.tenchiki.net/
"Remember always that it is easy to be in possession
of some facts, extraordinarily difficult to know the truth."
-- Nancy Etcoff
More information about the svlug
mailing list