... and which Operating System and Shell you are using.
First impressions are of syntax errors. For example there are 3 "if" but only 2 "fi".
There probably should be a "fi" just before the "else".
Indentation is your friend.
To check for syntax errors before running a script (assuming ksh):
Though in your case it probably doesn't matter it is normal to use the "no rewind" device in "mt" commands.
Not sure what sort of tape deck this is but I have never seen a "mt load" command and have never needed a "mt offline" command. The "mt status" and "mt rewind" are usually what you need.
Hello All,
I need immediate help in creating shell script to call archivebkup.ksh script when archive file system capacity reaches threshold value or 60%
Need to identify the unique file system that reaches threshold value.
ex:
capacity
... (4 Replies)
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)
Hi all
i am struggling in creating a restore of env files while doing applications clone.
the first file i created for copying the important configurations file
which is running perfect
now for reverting the changes i mean when i am restoring these files to its original places
i have to do... (7 Replies)
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)
Hi guys,
I'm new to Linux and dont know much of scripting..there's an automated backup script that will backup the database from a location to another location between servers..it was created by another person and I tried to understand it somewhat..
I hope the script first checks if mount... (4 Replies)
Hi guys,
I'm new to Linux and dont know much about scripts..there's an backup script that will backup the database from a location to another location between servers..it will run automatically by adding it to crontab...it was created by another person and I tried to understand it somewhat..
... (1 Reply)
In AIX 5.1, a daily run script that backing up oracle data failed yesterday with following errors:
The Tivoli backup of DBPROD failed.
What could be the issue, OS, backup or Oracle? (3 Replies)
I am trying to copy files from one directory to another using shell script. Can anyone please troubleshoot the code.
thanks in advance...
#!C:\Shell\sh.exe
files_dir="C:\Documents and Settings\scripts\files"
backup_dir="C:\Documents and Settings\scripts\ztest"
echo cding to... (2 Replies)
Running Tru64 and the library is MSL6000. Also, running Sybase.
Performing tape library inventory.
No values returned by robot list command.
ERROR: Unable to perform preliminary inventory. Job aborting.
Wed May 13 07:00:08 2009: DB_tape_backup process completed.
I'm getting this error on... (0 Replies)
Hi Unix Shell Script Expert,
We have a robust shell script (from old time) for our 9i database hot backup but generated error:
Shell Script Content:
#check for auto log mode and redirect as early as possible
#
autolog_enable $AUTOLOG_MODE $ORACLE_BASE/${ORASID_LOW}log/cron_hotbackup.log... (1 Reply)