05-25-2011
Assuming you used ufsdump to take the backup,
rewind the tape and move to the file number of opt
e.g
mt -f /dev/rmt/0 rewind
if you hav taken /opt after some other mount point using the same tape, you hav to do the following:
mt -f /dev/rmt/0 fsf 1
ufsrestore rf /dev/rmt/0
10 More Discussions You Might Find Interesting
1. Linux
All,
Has anybody ever got a Linux server to backup to a remote Solaris tape drive using the dump command and rsh? I can remtoely backup two Solaris server this way. Any help would be appreciated.
Thanks,
Mike (0 Replies)
Discussion started by: bubba112557
0 Replies
2. UNIX for Advanced & Expert Users
Hi,
OS: Solaris9, SPARC.
Commands (and their outputs) that I use to backup two files of size 4GB and 10GB (respectively) are shown below:
# cd /backup/daily/
# mt -f /dev/rmt/0m rew
# tar -cvf /dev/rmt/0m *
a Mails.bkf 4680454 tape blocks
a backup.bkf too large to archive
#
The... (3 Replies)
Discussion started by: mahatma
3 Replies
3. Solaris
Hello all,
I have an ss20 running Solaris 7, with an attached 4mm tape drive. The machine has one 1.2GB SCSI HDD. I would like to backup other machines
to tape, but I can't do a stopover on the ss20s hard disk, as there is virtually no space available. Is there a way I can make the tape... (5 Replies)
Discussion started by: jolok
5 Replies
4. Shell Programming and Scripting
hi all,
very urgent need backup script on tape using solaris 8, my tape drive is DAT 72 on sun v240.
i need a simple script to backup files from directory /data/log/back/200703/filename.log. the files will backup continue each day on the tape which have 72 GB. the files size only 50MB and... (0 Replies)
Discussion started by: bucci
0 Replies
5. UNIX for Dummies Questions & Answers
Hi there: I'm new here
Can anyone help me:
I have DS15 Alpha server : Unix 5.1B
Now i need to connect a DLVT VS80 1U Rackmount Tape Drive unit.
What is the exact comman to mount the DLTape IV??
How do i make backuo @ copy file to the tape?
Thanx to all (0 Replies)
Discussion started by: ayzeayem
0 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I performed backup on tape and I want to append more files to my previous backup on the same backup tape. But before I do that I need to know the backup file size of the first backup I performed so that I know the available size on the backup tape. Can someone help me what command I will use... (0 Replies)
Discussion started by: ayhanne
0 Replies
7. UNIX for Dummies Questions & Answers
Hi all
I had started to learn how to backup disk to disk to tape method
Firstly I had backup to my NAS
tar czvf /MyNetworkStorge/backup.tar /home
Secondly I using dd command to copy the tar to tape
dd if=/MyNetworkStorge/backup.tar of=/dev/tape0
But the tape drive always hang.... (5 Replies)
Discussion started by: lijiajin
5 Replies
8. Solaris
Hi,
I want to take backup of files older than 20 days from a directory onto a tape drive on remote machine on Solaris.
The files are of format abc-20100301000000.gz on my local machine.
I know the below commands for searching files older than x days and command for backup procedure.
solar1 #... (7 Replies)
Discussion started by: jyothi_wipro
7 Replies
9. Shell Programming and Scripting
Hi there,
Alright I have this line that I'm working with (bash programming):
mysql -u username -pHASH ${args} < /home/site/backups/site.${args}.sql
I get this error on that line:
./restore.sh: line 51: syntax error near unexpected token `newline'
./restore.sh: line 51: `mysql -u... (5 Replies)
Discussion started by: Pandoula
5 Replies
10. AIX
Hi, AIXers :)
Recently i'm playing around with cpio command, when i try to list out content from LTO2 Tape media using
command:
#cpio -itvc < /dev/rmt1
it's stopped at particular path
100777 root 1042591 Mar 24 10:09:05 2012 /home/uv/bin/usd
and there was an error thrown out:
... (2 Replies)
Discussion started by: polar
2 Replies
RESTOR(1M) RESTOR(1M)
NAME
restor - incremental file system restore
SYNOPSIS
restor key [ argument ... ]
DESCRIPTION
Restor is used to read magtapes dumped with the dump command. The key specifies what is to be done. Key is one of the characters rRxt
optionally combined with f.
f Use the first argument as the name of the tape instead of the default.
r or R The tape is read and loaded into the file system specified in argument. This should not be done lightly (see below). If the key is
R restor asks which tape of a multi volume set to start on. This allows restor to be interrupted and then restarted (an icheck -s
must be done before restart).
x Each file on the tape named by an argument is extracted. The file name has all `mount' prefixes removed; for example, /usr/bin/lpr
is named /bin/lpr on the tape. The file extracted is placed in a file with a numeric name supplied by restor (actually the inode
number). In order to keep the amount of tape read to a minimum, the following procedure is recommended:
Mount volume 1 of the set of dump tapes.
Type the restor command.
Restor will announce whether or not it found the files, give the number it will name the file, and rewind the tape.
It then asks you to `mount the desired tape volume'. Type the number of the volume you choose. On a multivolume dump the recom-
mended procedure is to mount the last through the first volume in that order. Restor checks to see if any of the files requested
are on the mounted tape (or a later tape, thus the reverse order) and doesn't read through the tape if no files are. If you are
working with a single volume dump or the number of files being restored is large, respond to the query with `1' and restor will read
the tapes in sequential order.
If you have a hierarchy to restore you can use dumpdir(1) to produce the list of names and a shell script to move the resulting
files to their homes.
t Print the date the tape was written and the date the filesystem was dumped from.
The r option should only be used to restore a complete dump tape onto a clear file system or to restore an incremental dump tape onto this.
Thus
/etc/mkfs /dev/rp0 40600
restor r /dev/rp0
is a typical sequence to restore a complete dump. Another restor can be done to get an incremental dump in on top of this.
A dump followed by a mkfs and a restor is used to change the size of a file system.
FILES
default tape unit varies with installation
rst*
SEE ALSO
dump(1), mkfs(1), dumpdir(1)
DIAGNOSTICS
There are various diagnostics involved with reading the tape and writing the disk. There are also diagnostics if the i-list or the free
list of the file system is not large enough to hold the dump.
If the dump extends over more than one tape, it may ask you to change tapes. Reply with a new-line when the next tape has been mounted.
BUGS
There is redundant information on the tape that could be used in case of tape reading problems. Unfortunately, restor doesn't use it.
RESTOR(1M)