From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1020c6,c0b68e7f7e519d7b X-Google-Attributes: gid1020c6,public X-Google-Thread: fee84,c0b68e7f7e519d7b X-Google-Attributes: gidfee84,public From: "Benjie Gandionco" Subject: Re: Inserting a system reboot in crontab script Date: 1996/11/18 Message-ID: <01bbd4ff$66cbc580$99d3bb8b@pc-blg.nsc.com>#1/1 X-Deja-AN: 197141249 sender: news@nsc.nsc.com (netnews maintenance) references: <01bbd05d$a6174760$99d3bb8b@pc-blg.nsc.com> organization: National Semiconductor, Santa Clara newsgroups: comp.unix.admin,comp.unix.osf.osf1 Here's the scenario: I run the backup with vdump at nights. I first backup to disk since this is faster and I have to backup more than one file system to tape which I don't think I can do with a simple vdump. I would have liked to boot to single-user mode before doing the actual backup, but I found out that the cron job doesn't continue after switching to single-user mode. So I just bring the network down before doing the backup. After I backup to disk, I start up the network so that users can log in. I like my system to start up clean so I instead opted for a reboot instead of restarting the network. After this, I ran the backup to tape script. All this is done by cron. Regarding bringing down the system for backups, I would have liked to keep the system running, but a key user wanted the system brought down so the cutoffs for backed up data would be clear, not like when users are still transacting while doing a backup. I still have little experience with Unix and any comments on the above scenario is highly appreciated. Benjie Gandionco wrote in article <01bbd05d$a6174760$99d3bb8b@pc-blg.nsc.com>... > Is it possible to insert a system reboot in a crontab script? > I want to do a reboot in the middle of a script and then continue > right where it left off. > > Thanks. > >