Re: crontab: main file ?
- From: ibuprofin@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (Moe Trin)
- Date: Mon, 08 Feb 2010 13:59:49 -0600
On Mon, 08 Feb 2010, in the Usenet newsgroup comp.os.linux.misc, in article
<Xns9D1960786288Bkingalbert2forpresid@xxxxxxxxxxxxx>, King Albert wrote:
ibuprofin@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (Moe Trin) wrote
That's a disadvantage, as you've lost the ``connection'' between the
backup and tape drive programs. Now, the umount/eject occurs without
consulting the status of the backup program. Why not leave the two
commands at the end of the commands that do the backup and
verification functions?
$$$ The biggest pity is that the Acronis programme doesn't cater for
ejects from within its GUI.
Think you may want to look at other backup programs. For what it's
worth, none of our servers are running a GUI (it's a server, not a
work station), so that makes things much less complicated.
The commands that you CAN issue from within are not the last thing
the programme does, it verifies AFTER your last chance of commanding
something.
For us, that would really be a negative. OK - I'd probably have a
task that runs at 6AM that looks in the process table (ps aux) for
the backup application. If the backup is still running, loop to a
'sleep 60' and check again. Once the backup application is finished
and no longer in the process table, you can safely unmount and eject.
$$$ Thanks for explaining the user side of it. However the eject
sequence needs to run regardless of the logged on user. Therefor, is
it safe to just add those 2 commands (with fullpath syntax) to
/etc/crontab ?
It should be OK - our backups are run as/by the cron task of the
user 'backup' (who therefore owns the processes/tapes/files/etc.)
and that user needs to have permission to use the 'umount' and
'eject' commands. (Su to the backup account, run crontab -l there to
create the task. The 'backup' user doesn't have to be logged in to
_run_ the cron jobs.) As regarding umount/eject, we have the tape
drive mounted using the 'user' option and set UID and GID as needed
in /etc/fstab. Thus, the user 'backup' has permission to
mount/umount/eject the tape.
Old guy
.
- References:
- crontab: main file ?
- From: King Albert
- Re: crontab: main file ?
- From: Moe Trin
- Re: crontab: main file ?
- From: King Albert
- crontab: main file ?
- Prev by Date: Re: crontab: main file ?
- Next by Date: Kernel messages about hard drives
- Previous by thread: Re: crontab: main file ?
- Next by thread: Re: crontab: main file ?
- Index(es):
Relevant Pages
|