I have a script which calls amdump, amtoc, amverify in succession for a nightly backup
I found that if no tape was inserted, amdump quickly returns, but amverify later keeps hanging around, calling ammt rewind every now and then ad nauseam.
why is that?
The amdump (and other amanda) man-pages do not talk about return codes. So it is safe to assume that if amdump(8) returned !=0 that it returned an error and I can use || exit to stop it from continuing?
amanda 22292 0.0 0.3 1860 848 ? S 00:44 0:00 \_ /usr/bin/bash /usr/local/etc/amanda/Daily/runbackup Daily
amanda 22526 0.0 0.3 1940 980 ? S 00:50 0:00 \_ /bin/sh /usr/local/sbin/amverify Daily
amanda 26850 0.0 0.1 1792 504 ? S 08:56 0:00 \_ /usr/local/sbin/ammt -f /dev/nrmt0 rewind
Mathias Körber Director Technical Services Lightspeed Technologies [EMAIL PROTECTED]