Discussion:
[Plug-webdev] Split directory tree for archive?
Alan Dayley
2008-08-15 03:02:29 UTC
Permalink
I have a very large directory tree that I want to archive on single
layer DVDs. I don't want to compress it or use the "split" command
because later I want to get to individual files on the discs without
having to copy or uncompress or recombine the archive. A simple
example is like this:

Base
|--dir1 (200MB)
|--dir2 (5,000MB)
|--dir3 (3,000MB)
|--dir4 (1,000MB)
|--dir5 (2,000MB)
\--dir6 (200MB)

The script or tool would copy this tree to something like:
Archive
|--Disc1
| \--Base
| |--dir1
| \--dir2-1
|--Disc2
| |--dir2-2
| \--dir3-1
\--Disc3
|--dir3-2
|--dir4
|--dir5
\--dir6

The solution need not match this exactly, just result in me not
needing to make division of tree moves myself. That would be painful.
Anyone ever heard of such a thing?

Alan
Eric Shubert
2008-08-15 03:33:05 UTC
Permalink
Post by Alan Dayley
I have a very large directory tree that I want to archive on single
layer DVDs. I don't want to compress it or use the "split" command
because later I want to get to individual files on the discs without
having to copy or uncompress or recombine the archive. A simple
Base
|--dir1 (200MB)
|--dir2 (5,000MB)
|--dir3 (3,000MB)
|--dir4 (1,000MB)
|--dir5 (2,000MB)
\--dir6 (200MB)
Archive
|--Disc1
| \--Base
| |--dir1
| \--dir2-1
|--Disc2
| |--dir2-2
| \--dir3-1
\--Disc3
|--dir3-2
|--dir4
|--dir5
\--dir6
The solution need not match this exactly, just result in me not
needing to make division of tree moves myself. That would be painful.
Anyone ever heard of such a thing?
Alan
_______________________________________________
I don't know of anything that does this, but it shouldn't be too hard to
write a script that does it. The script could 'walk' the base tree, and
create the archive tree with hard links to the files. Then just mkisofs and
cdrecord the disc directories.
--
-Eric 'shubes'
Alan Dayley
2008-08-15 04:23:23 UTC
Permalink
Post by Eric Shubert
I don't know of anything that does this, but it shouldn't be too hard to
write a script that does it. The script could 'walk' the base tree, and
create the archive tree with hard links to the files. Then just mkisofs and
cdrecord the disc directories.
That's an idea, Shubes. I'll keep that in my back pocket in case no
other answers come up.

I'm going to post this into plug-discuss where I first intended it.

Alan

Alan Dayley
2008-08-15 04:21:40 UTC
Permalink
Whoops! Meant to post this in the plug-discuss list.
Post by Alan Dayley
I have a very large directory tree that I want to archive on single
layer DVDs. I don't want to compress it or use the "split" command
because later I want to get to individual files on the discs without
having to copy or uncompress or recombine the archive. A simple
Base
|--dir1 (200MB)
|--dir2 (5,000MB)
|--dir3 (3,000MB)
|--dir4 (1,000MB)
|--dir5 (2,000MB)
\--dir6 (200MB)
Archive
|--Disc1
| \--Base
| |--dir1
| \--dir2-1
|--Disc2
| |--dir2-2
| \--dir3-1
\--Disc3
|--dir3-2
|--dir4
|--dir5
\--dir6
The solution need not match this exactly, just result in me not
needing to make division of tree moves myself. That would be painful.
Anyone ever heard of such a thing?
Alan
Loading...