Subject: Re: /var/backups and /etc/security
To: Andrew Brown <>
From: Luke Mewburn <>
List: tech-userlevel
Date: 03/16/2001 07:37:08
On Thu, Mar 15, 2001 at 03:31:36PM -0500, Andrew Brown wrote:
> currently, /var/backups currently contains two copies of files that
> are being backed up: a copy of the current version and a copy of the
> previous version.  that's not very helpful if you wanna see what you
> were doing six months ago.  or even three days ago, if you change
> stuff a lot.
> i've just rewritten (yes, again...the last rewrite is on my laptop
> which is being serviced) changes to /etc/security to use rcs as an
> alternative to the "two copy" method.  of course, each time i redo it,
> i redo it better.  :)
>  * added a variable to /etc/defaults/security.conf: backup_uses_rcs=NO
>    (1 line)
>  * added a routine called do_backup to /etc/rc.subr to handle the
>    cp/mv method and the rcs method (61 lines, including comments)
>  * changed /etc/security to call do_backup instead of using cp/mv
>    (95 lines, in unified diff format)
> comments, please?  i'd like to add this to -current.

sounds great, but i don't know if there's justification for putting
do_backup() in rc.subr if it's only used by /etc/security; leave the
function in /etc/security for now. if we start to use it in other rc
style scripts we can always move the function to rc.subr at that time.