Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!spool.mu.edu!agate!ucbvax!CONCOUR.CS.CONCORDIA.CA!goldfish From: goldfish@CONCOUR.CS.CONCORDIA.CA Newsgroups: comp.sys.apollo Subject: Re: Automated Registry Backup Message-ID: <9106281138.aa19719@concour.cs.concordia.ca> Date: 28 Jun 91 15:35:24 GMT Article-I.D.: concour.9106281138.aa19719 References: <9106281339.AA00365@tech.perpk.nt.com> Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 61 I have posted this before, it is the script I used to backup my registry. change the "WORK" variable to the appropriate place. This keeps time-stamped coppies of the registry. It could be put in crontab, however I always ran it manually. Oh yes, the user who runs it must be the owner of the registry. The script lists what it is doing at each step, and, though I wrote it for the BSD environment, there is nothing BSD specific in it. (Aegis users, good luck ...) best of luck, -- Paul Goldsmith (514) 848-3031 (Shirley Maclaine told me there would be LIFETIMES like this) the future isn't what it used to be; and possibly, never was (ao) vvvvvvvvvvvvvvvvvvvvvvv start vvvvvvvvvvvvvvvvvvvvvvvvvvv #!/bin/sh ## $Log: bkup-registry,v $ ## Revision 1.1 91/01/16 11:57:29 root ## Initial revision ## # WORK=/site/etc/bkup; rm ${WORK}/registry ${WORK}/registry-temp ############################################################ # place registry in maintenance ############################################################ /etc/rgy_admin <<-EndOfFile1 state -in_maintenance lrep -state -EndOfFile1 ############################################################ # copy quiescent registry to a wbak file ############################################################ ( cd /sys/registry ; \ /usr/apollo/bin/wbak . -pdtu -to \ ${WORK}/registry \ ) ############################################################ # re-enable the registry ############################################################ /etc/rgy_admin <<-EndOfFile2 state -not_in_maintenance lrep -state -EndOfFile2 ############################################################ # create date-stamped version of registry backup ############################################################ touch ${WORK}/registry-temp cp -C ${WORK}/registry-temp ${WORK}/registry rm ${WORK}/registry ${WORK}/registry-temp