On Wed, 9 Dec 1998, Marc SCHAEFER wrote:
> tim hibbard <[EMAIL PROTECTED]> wrote:
> > mt -f /dev/st0 rewind #Rewind the tape to beg
> > bru -cvf /dev/st0 /root #Backup Root Partion
> > mt -f /dev/st0 fsf 1 #This should position me at the next marker?
> > bru -cvf /dev/st0 /etc #back up /etc
>
> Use the /dev/nst0. Using /dev/st0 causes automatic rewinding. Thus
> mt -f /dev/st0 fsf 1 skips one file and then the tape is rewound.
There are a couple of other things that it's useful to do. You may like to
check that /dev/tape is a symbolic link to /dev/nst0; /dev/tape is the
default device used by mt and this symbolic link makes it's use easier for
people with only one tape drive; you can then just do an "mt fsf 1" and
have it work right. Secondly, use /dev/nst0 for the backup device. this
will leave the tape positioned after the file mark ready for the next
backup so all you would have to do is something like this:
mt rewind #rewind the tape before starting
bru -cvf /dev/nst0 /root #backup root
bru -cvf /dev/nst0 /etc #backup /etc
- and so on till you're done -
mt rewoffl #rewind and unload the tape
You might also note that /root isn't the root partition, it's the root
user's home directory. / is the top of the root partition's directory
tree. "mount" by itself gives you a list of the mounted disk partitions
and thus a list of the things you should back up.
--------------------------------------------------------------------
Steve Austin [EMAIL PROTECTED]
http://www.edensfld.demon.co.uk for a really bad time.
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]