Does anyone know how do you write a file to a tape, spanning across more than 1 tape? Also, how do you read from it? A collegue of mine came over this at work and he was asking me about it. Also, what are the advantages or disadvantages of using cpio versus tar for archiving? Any help will be greatly appreciated. Regards, C. J. Tan ------------------------------------------------------------------------------ C. J. Tan E-mail: cjtan@acm.org Telephone: 1-403-220-8038 tanc@cuug.ab.ca 1-403-606-4257 URL: <A HREF="http://www.cuug.ab.ca/~tanc"><A HREF="http://www.cuug.ab.ca/~tanc</A">http://www.cuug.ab.ca/~tanc Facsimile: 1-403-284-1980 "An engineer made programmer is one who attempts to solve a problem, A programmer made engineer is one who knows how to solve a problem." ------------------------------------------------------------------------------ - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
C. J. Kenneth Tan wrote:
Does anyone know how do you write a file to a tape, spanning across more than 1 tape? Also, how do you read from it? A collegue of mine came over this at work and he was asking me about it.
... # tar --help ... Device selection and switching: ... -M, --multi-volume create/list/extract multi-volume archive -L, --tape-length=NUM change tape after writing NUM x 1024 bytes ... - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
No, I guess I didn't phrase my question very well. I wanted to know how to write a file to a tape spanning across more than 1 tape using 'dd'. Regards, C. J. Tan On Sun, 28 Jun 1998, Matthias Morche wrote:
C. J. Kenneth Tan wrote:
Does anyone know how do you write a file to a tape, spanning across more than 1 tape? Also, how do you read from it? A collegue of mine came over this at work and he was asking me about it.
... # tar --help ... Device selection and switching: ... -M, --multi-volume create/list/extract multi-volume archive -L, --tape-length=NUM change tape after writing NUM x 1024 bytes ... - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
------------------------------------------------------------------------------ C. J. Tan E-mail: cjtan@acm.org Telephone: 1-403-220-8038 tanc@cuug.ab.ca 1-403-606-4257 URL: <A HREF="http://www.cuug.ab.ca/~tanc"><A HREF="http://www.cuug.ab.ca/~tanc</A">http://www.cuug.ab.ca/~tanc Facsimile: 1-403-284-1980 "An engineer made programmer is one who attempts to solve a problem, A programmer made engineer is one who knows how to solve a problem." ------------------------------------------------------------------------------ - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
No, I guess I didn't phrase my question very well. I wanted to know how to write a file to a tape spanning across more than 1 tape using 'dd'.
Regards, C. J. Tan
I believe that you'll have to manually keep track of how many blocks are being stored on you medium, then skip that many blocks to write the next tape, then when constructing the file together, just take all the fragments and append them...
C. J. Kenneth Tan wrote:
No, I guess I didn't phrase my question very well. I wanted to know how to write a file to a tape spanning across more than 1 tape using 'dd'.
... In that case, You have to do the tape sizing by hand. Start dd using the option count to specify the count of blocks to write to each tape and the option skip to specify at which block to start to read from the source device or seek to give the start on the target device. For example: # Write device /dev/sda to 10MB sized tape cartridges within /dev/st0 dd if=/dev/sda bs=10240 skip=0 count=1024 of=/dev/st0; # change tape dd if=/dev/sda bs=10240 skip=1024 count=1024 of=/dev/st0; ... # Later read it back... dd of=/dev/sda bs=10240 seek=0 count=1024 if=/dev/st0; # Again, change tape dd of=/dev/sda bs=10240 seek=1024 count=1024 if=/dev/st0; ... - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
Hi! Trying to kill the keyboard, tanc@cuug.ab.ca produced:
Does anyone know how do you write a file to a tape, spanning across more than 1 tape? Also, how do you read from it? A collegue of mine came over
You may want to use tar. Dump/restore may or may not work, the man page says it doesn't with Linux, yet I heard reports that it does. Any proper backup package will/should work as well. -Wolfgang -- PGP 2 welcome: Mail me, subject "send PGP-key". If you've nothing at all to hide, you must be boring. Unsolicited Bulk E-Mails: *You* pay for ads you never wanted. Is our economy _so_ weak we have to tolerate SPAMMERS? I guess not. - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
participants (4)
-
jpcowh01@ox.slug.louisville.edu
-
morche@sat1.de
-
tanc@cuug.ab.ca
-
weissel@jupiter.ph-cip.uni-koeln.de