On Fri, 2008-05-02 at 12:41 -0400, David Mackintosh wrote: > Hi folks, > > Here's the situation. I have a group of engineers who love to save > things to disk. Now that the filer is getting full, they are > interested in archiving some of those things to DVD. > > The tress containing the things they want to archive are specified > like so: > > /path/path/path/A/04?? > /path/path/path/B/04?? > /path/path/path/A/05?? > /path/path/path/B/05?? > /path/path/path/A/06?? > /path/path/path/B/06?? > > ...and there are things in A and B which do not match the specifications. > > The total amount of data in this specificaiton is around 30GB, and this is not > distributed equally through the specification. > > What I'm hoping for is a program that I can feed in directory > specifications like the above, and it will produce for me DVD images > (.iso files) containing these trees in such a format that when the > engineers want file $X, I can give them the DVD (or the whole stack, > if required) and say "there you go" without having to go through a > restore process. > > I don't want something which creates it's own archive format which > spans the DVDs (ie split-tar or ufsdump). > > I would settle for a program that produces a list of files such that I > can create DVD images on my own. > > Does anyone have any ideas how I might go about doing this, before I > roll my own solution? Maybe 1) du -sH /path/path/path/A/04 /path/path/path/B/04 ... &>/tmp/dirsizes 2) vi /tmp/dirsizes 3) group as desired and format aws list of dirs and surround each group with something like echo -n "Insert media and hit enter - ";read A cpio -pdumav /<your target dir> <<EOF # A list of dirs to include EOF >From there, many options. Personally, I would make the format ext2 rather than ISO-9660. Its been a long time since I did this, so I'm working from memory. Anyway, then a dd if=<the ext2 fs> of=<your media> bs=20480 makes the CD or DVD. If output is a DVD, remember to format it first. > <snip sig stuff> This is simple enough that you could do a small script that the engineers could run themselves. It's very easy to use the above in conjunction with dc or bc, csplit, awk, perl or whatever you are familiar with, to break it into pieces automatically. HTH -- Bill