Ontape via Cronjob
Posted in 1997
Topics: Backup & Restore
We run Informix On-Line Dynamic Server 7.22. We currently run archives
via "ontape -s -L 0" *manually* on a daily basis on several servers. I
would like to automate this process so that we can just create a script
with the command, and run it via cron at night (loading a new tape each
day).
I have tested a few ways of doing this, but I get stuck at the:
Please mount tape 1 on /dev/rmt/1 and press Return to continue
...
We have a shell script that does the "ontape -a" that uses a command
line of
(echo "\\n"; echo "n\\n") | ontape -a
to get past the same message, but for some reason this doesn't work with
"ontape -s".
Any help would be greatly appreciated. Please send responses directly
to me at mailto:aaron@intraware.com and I will post a summary.
Thanks,
Aaron
--
Aaron Herskowitz Mailto:aaron@intraware.com
Systems Engineer Voice:510-253-4566
intraware Inc. Fax:510-253-4599
Send XL T-Shirts to 25 Orinda Way, Orinda, CA 94563
http://www.intraware.com