Determine Free Space on Tape

This is a discussion on Determine Free Space on Tape within the Linux Administration forums, part of the Linux Forums category; Hi - I've only recently started using tar to back up my linux system to a scsi tape drive (Travan ...


Go Back   Usenet Forums > Linux Forums > Linux Administration

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-21-2003
FriscoKid
 
Posts: n/a
Default Determine Free Space on Tape

Hi -

I've only recently started using tar to back up my linux system to a scsi
tape drive (Travan 20GB), where I used to back up directly to a spare hard
disk drive. I have no problems running the backup, but I am curious to know
if there is an easy way to see how much free space is left on the tape? I'm
only using tar and have no gui tools or other backup programs. I would
simply like to know how much room on the tape the backup is taking. I
suppose I could count up the size of all the directories I'm backup up, but
that doesn't factor tape compression. Does one of the "mt" options allow
you to see how much space remains?

Thanks.

(reply to group)


Reply With Quote
  #2 (permalink)  
Old 07-23-2003
William Cherry
 
Posts: n/a
Default Re: Determine Free Space on Tape

"FriscoKid" <news@only> writes:

Hi,

The "mt tell" option can give you some idea, if your drive supports this
(many scsi drives do). After you write your backup file, you can
use "mt tell" to see what block your on. If you multiply by block size,
that will be roughly how much tape you used up.

If you want to find out how much stuff is already on the tape,
first do "mt eod" to move to the "end of data."

Don't forget to use the "no-rewind" drive specification,
e.g.

mt -f /dev/nst0 eod
mt -f /dev/nst0 tell

Hope that helps.

--William Cherry


> Hi -
>
> I've only recently started using tar to back up my linux system to a scsi
> tape drive (Travan 20GB), where I used to back up directly to a spare hard
> disk drive. I have no problems running the backup, but I am curious to know
> if there is an easy way to see how much free space is left on the tape? I'm
> only using tar and have no gui tools or other backup programs. I would
> simply like to know how much room on the tape the backup is taking. I
> suppose I could count up the size of all the directories I'm backup up, but
> that doesn't factor tape compression. Does one of the "mt" options allow
> you to see how much space remains?
>
> Thanks.
>
> (reply to group)

Reply With Quote
  #3 (permalink)  
Old 07-24-2003
FriscoKid
 
Posts: n/a
Default Re: Determine Free Space on Tape

"William Cherry" <wcherry@unt.edu> wrote in message
news:m34r1d6u1j.fsf@wcherry.math.unt.edu...
[-----]
>
> mt -f /dev/nst0 eod
> mt -f /dev/nst0 tell
>
> Hope that helps.
>
> --William Cherry
>


Excellent - thanks a bunch!


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:50 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0