03-11-2002
Check the man page on mt for controlling the tape drive and checking to see if it's available.
As far as the setting a variable, it matters which shell you are using.
i thought about the commands
tar -tvf $tape1 > mylist
and then do the command wc -l mylist
but how can i put the output into a variable for exemple $Mynumber
In csh - set Mynumber =`wc -l mylist`
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello Guys:
Would like to know how to take an entire system backup.. Here is the entire scenario.. I am working on a system that is AIX RS6000 M80 Server. We have loaded the OS and installed all the patches and then we took an entire system backup. We also verified by restoring the same... (2 Replies)
Discussion started by: ST2000
2 Replies
2. UNIX for Advanced & Expert Users
Friends, while taking backup on /dev/rmt/0cn it is showing device does not exists.
I have checked /dev/rmt 0cn is present there with link file created in /devices/pci@8,700000/scsi@5/st@5,0:cn
I have checked cd /devices/pci@8,700000/scsi@5 but st@5,0:cn is not there. But I found st@3,0:cn.
... (3 Replies)
Discussion started by: ailnilanjan
3 Replies
3. 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
4. SCO
I am trying to make a full backup of my system using the cpio command. The Tape Unit is a SCSI DDS.
The process started fine but after about 30 minutes, it just stopped and showed the following message:
1755 Signal 31 - Core dumped
Any idea of what is causing this and how to fix it?
... (4 Replies)
Discussion started by: zionpc
4 Replies
5. UNIX for Advanced & Expert Users
I am trying to backup my .bash_history and I want to keep every version of the backup. I am thinking to put one of these in my crontab.
0 0 * * 0,3 cat .bash_history > boo
0 0 * * 0,3 cp .bash_history boo
I would like the backups to be called boo1, boo2, boo3, etc. I would like to keep... (7 Replies)
Discussion started by: cokedude
7 Replies
6. Shell Programming and Scripting
Hi Friends,
I need help. I have around 100 users. I want to take date wise backup of files which are on desktop for every user.
My user directory path is -: /home/dr/<user_name>/Desktop
1) Script has to run on a perticular time everyday
2) Script has to take backup of all files present... (2 Replies)
Discussion started by: paragnehete
2 Replies
7. Shell Programming and Scripting
Hi Everyone,
we are running rsync with --backup mode, Are there any rsync options to remove backup folders on successful deployment?
Thanks in adv. (0 Replies)
Discussion started by: MVEERA
0 Replies
8. HP-UX
Hi Experts,
When i taking backup of my servers in Tape Library simultaneously the Temp folder is getting full...... these file like OB2DBG*.txt (2 Replies)
Discussion started by: purushottamaher
2 Replies
9. Shell Programming and Scripting
HI all, im new to shell scripting. need your guidence for my script. i wrote one script and is attached here
Im explaining the requirement of script.
AIM: Shell script to run automatically as per scheduled and backup few network devices configurations. Script will contain a set of commands... (4 Replies)
Discussion started by: saichand1985
4 Replies
AMMT(8) System Manager's Manual AMMT(8)
NAME
ammt - Amanda version of mt
SYNOPSIS
ammt [ -d ] [ -f|-t device ] command [ count ]
DESCRIPTION
Ammt provides just enough of the standard mt command for the needs of Amanda. This is handy when doing a full restore and the standard mt
program has not yet been found.
Ammt also provides access to the Amanda output drivers that support various tape simulations.
See the amanda(8) man page for more details about Amanda. See the OUTPUT DRIVERS section of amanda(8) for more information on the Amanda
output drivers.
OPTIONS
-d Turn on debugging output.
-f device
Access tape device device. If not specified, the TAPE environment variable is used.
-t device
Same as -f.
command count
Which command to issue, and an optional count of operations.
COMMANDS
Each command may be abbreviated to whatever length makes it unique.
eof|weof count
Write count (default: 1) end of file marks (tapemarks).
fsf count
Skip forward count (default: 1) files.
bsf count
Skip backward count (default: 1) files.
asf count
Position to file number count (default: 0) where zero is beginning of tape. This is the same as a rewind followed by a fsf count.
rewind Rewind to beginning of tape.
offline|rewoffl
Rewind to beginning of tape and unload the tape from the drive.
status Report status information about the drive. Which data reported, and what it means, depends on the underlying operating system, and
may include:
ONLINE Indicates the drive is online and ready.
OFFLINE
Indicates the drive is offline or not ready.
BOT Indicates the drive is at beginning of tape.
EOT Indicates the drive is at end of tape.
PROTECTED
Indicates the tape is write protected.
ds Device status.
er Error register.
fileno Current tape file number.
blkno Current tape block number file.
NOTE: many systems only report good data when a tape is in the drive and ready.
AUTHOR
Marc Mengel <mengel@fnal.gov>
John R. Jackson <jrj@purdue.edu>
SEE ALSO
amanda(8)
AMMT(8)