bag@tech.perpk.nt.com (Bill Gutknecht) (06/28/91)
Does anyone have a good way of backing up the registry automatically? To copy the /sys/registry tree, you must put the registry into service mode. To put the registry in service mode, you must run rgy_admin. For rgy_admin to work, you must be logged in (not just running the process as root). So in other words, I can't do it with cron. Any ideas? Bill Bill Gutknecht bag@perpk.nt.com Systems Administrator (919) 481 - 8603 DMS10 Development Northern Telecom Inc "When I die, I will go before Crom and he will Morrisville, NC ask me the Riddle of Steel ... "
goldfish@CONCOUR.CS.CONCORDIA.CA (06/28/91)
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 <goldfish@concour.cs.concordia.ca> (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