[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File archiving questions



I think this is the simplist answer. Archive the entire directory using tar 
($ tar -cvf .bigfile.tar a) assuming you have another 2.4GB freespace.

Next use split to split it into 4 ~650MB files
($ split -b650m bigfile.tar bigfile.tar.) which should produce 4 files 
bigfile.tar.a, bigfile.tar.b etc. Again another 2.4 GB of freespace.

Burn to cd as is.

Copy to new location and reconstruct by cating them through a redirect.
($ cat bigfile.tar.* > bigfile.tar)
and untarball

Viola!

Right straight outta the Linux Cookbook. Funny you should asK!

Steve

On Sunday 14 April 2002 09:32 am, you wrote:
> Hello!  Here's my situation:
>
> I have a directory, called "a", that has 15,500 files in it.  The total
> bytes stored in the directory (as computed by executing command "du -sk a"
> ) is 2.4GB.
>
> I wish to store these files on CD-ROM's.  I want them stored as "files" on
> the CD-ROM's.  (i.e., not in a .tar or .zip or whatever).
>
> So... I figure I have to:
>   1. Create a directory called "b".
>   2. Copy about 650MB from "a" to "b".
>   3. Create a .iso file by typing:
>      mkisofs -o fred.iso -v -J -r b/
>   4. Burn a cd by typing:
>      cdrecord -v -eject dev=0,0,0 speed=12 fred.iso
>   5. rm fred.iso
>   6. rm -f b/*
>   7. If there are still files left in "a", go to step #1.
>
> Easy, huh?  My problem is in step #2, above.  What's an easy way to copy
> files from "a" to "b" and have the command STOP after 650MB have been
> transferred?  I've been doing it manually, and that's NOT fun!
>
> Thanks!
> Charlie Brune
>
> -
> To unsubscribe, send email to majordomo@silug.org with
> "unsubscribe silug-discuss" in the body.

-- 
----- BEGIN GEEKCODE BLOCK-----
GAT/ d- s+ a+ C++++ UL++>++++ P+>++++ L++>++++ 
E--- W+ N++ w--- O- M-- PS+ PE Y+ PGP- t- 5 X R-
tv+++ b- DI+++ D G++ e+>+++ h--- z- 
------END GEEK CODE BLOCK------
z-? h---? How odd!

-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.