The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > AIX
Google UNIX.COM


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Backup script - HELP :( c00kie88 Shell Programming and Scripting 1 05-13-2008 04:23 PM
Backup script dan86 Shell Programming and Scripting 1 10-29-2007 05:47 PM
A backup script pascal Shell Programming and Scripting 2 09-09-2005 05:53 AM
DB2 Backup Script jyoung UNIX for Dummies Questions & Answers 0 06-13-2005 09:59 AM
Help with a backup script SemperFi UNIX for Dummies Questions & Answers 5 07-22-2004 08:00 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 05-23-2005
Registered User
 

Join Date: May 2005
Posts: 3
Backup Script

I'm not sure if this is the place to ask this question but I have a script on an IBM RS6000 that has quit working. I can manually run a backup using SMIT and it appears okay, but not sure about the script.

----------code------------
#!/bin/ksh
#set -x
echo backup beginning
date
find /home -print | backup -i -f /dev/rmt0.1 -q
echo backup finished
date
----------------------------

it had several other directories included as well but I figured I would start with one and see if I could narrow down the problem of not backing up

Any help on this one would be greatly appreciated. I just kind of inherited this problem and this server because the person that maintained it quit.

TIA,
cami
Reply With Quote
Forum Sponsor
  #2  
Old 05-23-2005
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,667
"quit working" is not much to go on. Precisely what happens? I don't know AIX, but looking atthe backup man page, the only thing I notice is "/dev/rmt0.1" which looks odd. That man page says /dev/rmt0-1 would refer to two devices but I don't see any indication that a dot is acceptable. But since I don't know AIX, I suppose it might be legal.
Reply With Quote
  #3  
Old 05-23-2005
Registered User
 

Join Date: May 2005
Posts: 3
Backup Script

The script is executed from the crontab or I can run it manually and I see no error as it runs, but when I run SMIT to view the contents of the tape backup I get the following error:

restore: 0511-160 Cannot read the backup media
/dev/rmt0: There is an input or output error.

The backups have been running for a couple of years and when I started randomly checking them after the network person left a month or so later I would get the error every so often until I was finally getting it every day. Not exactly sure where to go next.

Reply With Quote
  #4  
Old 05-23-2005
Registered User
 

Join Date: May 2005
Posts: 3
Backup Script

I removed the .1 altogether and it appears to be working. Not sure how the script got modified or by whom but thanks for the hint.

Reply With Quote
  #5  
Old 05-23-2005
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,667
Check your /dev directory. You may have a large file called /dev/rmt0.1.
Reply With Quote
  #6  
Old 05-24-2005
Registered User
 

Join Date: Nov 2001
Location: Flint, MI
Posts: 186
I am not an expert, but I believe the ".1" after rmt0 tells the system not to rewind the tape so that another backup can be placed on the tape or allows a second backup on the same tape without writing over the first one. We have a backup that is similar. Here it is:
find /law1/DB/PROD -print | backup -iqvf /dev/rmt0.1
find /law1/lawson/ccsprod -print | backup -iqvf /dev/rmt0
Reply With Quote
  #7  
Old 05-24-2005
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
JYoung - hmm, maybe you are an expert - good call. Found the same info here

Of course, now we know this is okay to use, what is messing up the script??? It should work with the 0.1.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 06:14 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0