Single user backups
Tom Poage
ucdavis!sunny!poage at ucbvax.berkeley.edu
Thu Dec 15 20:04:49 AEST 1988
I haven't tried this ... but I plan to real soon now :-).
To bring the system (down) to single-user for unattended
backups, try leaving a semaphore via cron or at:
cat /dev/null >/mymessage
/etc/reboot
In one of your rc files put something like
if [ -f "/mymessage" ]; then
rm -f /mymessage
# Hmm, security hole? vvvvv
/run/your/dump/backup.shell
# or run your C program with exec(dump).
/etc/reboot
fi
Tom.
Tom Poage, UCDMC Clinical Engineering, Sacto., CA
ucdavis.ucdavis.edu!sunny!{poage,root,postmaster,news}
ucbvax!ucdavis!sunny!{poage,root,postmaster,news}
More information about the Comp.sys.sun
mailing list