On Tuesday 23 June 2009 11:51, Spann, Elizebeth (Betsie) wrote:
>I am trying to tar several directories to an LTO-3 tape using lin_tape,
>IBMtapeutil and tar.
>I open the tape device and then issue the tar commands. When I check
>the tape contents with tar tvf, I only see the last directory.
>I am not sure if I am not using the tar command correctly or if the tape
>is rewinding after each tar command.
>
>IBMtapeutil -f /dev/IBMtape0 rewind
>tar cvf /dev/IBMtape0 /directory1
>tar cvf /dev/IBMtape0 /directory2
>
>tar tvf /dev/IBM/tape0 --- reports only on /directory2
>
>Any suggestions, please?
I think you're right about it rewinding the tape. I'm not sure how that tape
driver works, but old-time UNIX tape drivers would rewind when the device was
closed. Try writing using a single tar command:
tar -cvf /dev/IBMtape0 /directory1 /directory2
That puts everything into one big tarfile onto that tape. You can list as
many directories you want on the tar command line.
- MacK.
-----
Edmund R. MacKenty
Software Architect
Rocket Software
275 Grove Street · Newton, MA 02466-2272 · USA
Tel: +1.617.614.4321
Email: [email protected]
Web: www.rocketsoftware.com
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390