Computing.Net > Forums > Solaris > remote tape backup

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

remote tape backup

Reply to Message Icon

Name: labtech
Date: May 3, 2002 at 08:09:22 Pacific
Comment:

Hi,
I use a DLT4000 for backups. I backup a local file system and use the no-rewind device so that I can backup a remote file system as the second volume on the tape.
From the remote machine I would use a command such as:

tar cvBbf 20 - /var/www | ssh XYZ -l root dd of=/dev/rmt/0hn obs=20b

where XYZ is the machine name with the tape drive. I backup several file systems from the remote machine this way, and thus I belive I am creating several volumes on the tape. When doing the last volume I use the /dev/rmt/0h (norewind) device instead of the rewind device.
If I want to restore from the first volume I use: dd if=/dev/rmt/0h | tar xvBfb - 20 Filename
How do I restore something from the second or latter volumes. I tried using mt fsf 1 and then doing the above dd | tar command and no luck.
Any suggestions would be greatly appreciated.
Sorry for the complexity of this posting!



Sponsored Link
Ads by Google

Response Number 1
Name: PaulS
Date: May 5, 2002 at 08:30:55 Pacific
Reply:

You must always use the norewind device when writing/reading sequencial archives (volumes) from a tape. For example, if you wrote two archives on a tape and then wanted to restore the 2nd archive:

|Archive_1 |Archive_2 |.....

and positioned the tape with:
# mt -f /dev/rmt/0n fsf 1

and then tried to restore it with:
# tar xvf /dev/rmt/0

As soon as you open tape device /dev/rmt/0, it will rewind. So you have to use /dev/rmt/0n

I would just get in the habit of always using the norewind device. You can rewind with the mt command when finished.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Solaris Forum Home


Sponsored links

Ads by Google


Results for: remote tape backup

taring to a remote tape drive? www.computing.net/answers/solaris/taring-to-a-remote-tape-drive/2357.html

Help needed on Tape backup www.computing.net/answers/solaris/help-needed-on-tape-backup/1114.html

How to verify tape backup www.computing.net/answers/solaris/how-to-verify-tape-backup/2766.html