Democratic Underground Latest Greatest Lobby Journals Search Options Help Login
Google

Random tape backup goodies

Printer-friendly format Printer-friendly format
Printer-friendly format Email this thread to a friend
Printer-friendly format Bookmark this thread
Home » Discuss » DU Groups » Computers & Internet » Open Source and Free Software Group Donate to DU
 
Commie Pinko Dirtbag Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Dec-17-04 08:01 AM
Original message
Random tape backup goodies
One:
To position the tape after the end of the last valid file (so you don't overwrite things):

mt -f /dev/nst0 seod

If you want to make sure the tape head starts from a sane position but you don't want to do a full rewind before the above positioning, try this:

mt -f /dev/nst0 bsf 1 && mt -f /dev/nst0 seod

From that point on you can write the tape to your heart's content and you won't be overwriting any previous files on it.

Two:
Have you ever recorded a sequence of tarballs into tape and upon reading them find out there's a "null" tarball between each one and the next? Use the "i" flag so tar skips any block of zeros at the end of file:

tar xzivf /dev/nst0

That way the next tar will read the next file the way it should be.


(Your tape device may be in a different place than /dev/nst0. If so, change accordingly)
Refresh | 0 Recommendations Printer Friendly | Permalink | Reply | Top
Commie Pinko Dirtbag Donating Member (1000+ posts) Send PM | Profile | Ignore Sun Dec-19-04 10:03 AM
Response to Original message
1. Small correction: the second command line won't work if...
...tape is already rewound. (rewinded?) Use this instead:

mt -f /dev/nst0 bsf 1 2>/dev/null ; mt -f /dev/nst0 seod
Printer Friendly | Permalink | Reply | Top
 
DU AdBot (1000+ posts) Click to send private message to this author Click to view 
this author's profile Click to add 
this author to your buddy list Click to add 
this author to your Ignore list Sun Dec 22nd 2024, 09:03 AM
Response to Original message
Advertisements [?]
 Top

Home » Discuss » DU Groups » Computers & Internet » Open Source and Free Software Group Donate to DU

Powered by DCForum+ Version 1.1 Copyright 1997-2002 DCScripts.com
Software has been extensively modified by the DU administrators


Important Notices: By participating on this discussion board, visitors agree to abide by the rules outlined on our Rules page. Messages posted on the Democratic Underground Discussion Forums are the opinions of the individuals who post them, and do not necessarily represent the opinions of Democratic Underground, LLC.

Home  |  Discussion Forums  |  Journals |  Store  |  Donate

About DU  |  Contact Us  |  Privacy Policy

Got a message for Democratic Underground? Click here to send us a message.

© 2001 - 2011 Democratic Underground, LLC