Random tape backup goodies
Commie Pinko Dirtbag
(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)
|
Commie Pinko Dirtbag
(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
|
DU
AdBot (1000+ posts) |
Sun Dec 22nd 2024, 09:03 AM
Response to Original message |
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.