Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Need help with switching Run levels via crontab
@ 1996-12-12  5:00 clos
  1996-12-16  5:00 ` sclarry
  0 siblings, 1 reply; 2+ messages in thread
From: clos @ 1996-12-12  5:00 UTC (permalink / raw)





I would like to automate a nightly process using crontab whereby I shutdown to
single-user mode, umount -a, dump -0uf / & /usr, and "shutdown -r now" to return
system to run level 3.  Is this sort of thing possible to automate? If so, I 
could use some pointers on how I might set it up.

The main reason I want to do this is to ensure a  clean tape backup of our UFS 
filesystems. The DEC OSF/1 Sys Admin manual tells me the only way to produce a 
"valid" backup of UFS files is to shutdown to single-user mode and unmount all 
filesystems first. If there is a better way to run backups I'm all ears.

We are currently running DEC Unix 3.2c on an Alpha 2100 5/300.
--------------------------------------------------------------------------------
Chris Los                                              e-mail: clos@trentu.ca
Computing and Telecommunications, Trent University     phone:  705-748-1588 
--------------------------------------------------------------------------------
  



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Need help with switching Run levels via crontab
  1996-12-12  5:00 Need help with switching Run levels via crontab clos
@ 1996-12-16  5:00 ` sclarry
  0 siblings, 0 replies; 2+ messages in thread
From: sclarry @ 1996-12-16  5:00 UTC (permalink / raw)



clos@ivory.trentu.ca wrote:

: I would like to automate a nightly process using crontab whereby I shutdown to
: single-user mode, umount -a, dump -0uf / & /usr, and "shutdown -r now" to return
: system to run level 3.  Is this sort of thing possible to automate? If so, I 
: could use some pointers on how I might set it up.

: The main reason I want to do this is to ensure a  clean tape backup of our UFS 
: filesystems. The DEC OSF/1 Sys Admin manual tells me the only way to produce a 
: "valid" backup of UFS files is to shutdown to single-user mode and unmount all 
: filesystems first. If there is a better way to run backups I'm all ears.

: We are currently running DEC Unix 3.2c on an Alpha 2100 5/300.
: --------------------------------------------------------------------------------
: Chris Los                                              e-mail: clos@trentu.ca
: Computing and Telecommunications, Trent University     phone:  705-748-1588 
: --------------------------------------------------------------------------------

Here's an overview of how I do it-

From crontab run a shutdown script which first creates a file called
        /autodump.

Have a script called /opr/weekly_backup which contains the dump commands.

The following lines are added to the /sbin/bcheckrc script to call the
        backup script and reboot-
# do weekly file dumps here if /autodump exists
[ -f /autodump ] && {
        /sbin/mount -u /
        /sbin/rm /autodump
        /sbin/sh /opr/weekly_backup
        /sbin/reboot
}

-- Larry Schafer
-- Academic Computer Services
-- St. Cloud State Univ.
-- (320)255-4710
-- FAX (320)255-4778
-- larry@condor.stcloud.msus.edu



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-12-16  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-12-12  5:00 Need help with switching Run levels via crontab clos
1996-12-16  5:00 ` sclarry

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox