Currently vinum does not send any reports by email. This script, to be used in daily periodic checks for differences in vinum status. Fix: #!/bin/sh # # $Id: 230.backup-vinum,v 1.1 2003/01/27 20:22:49 jonny Exp $ # # Suck in the configuration variables. if [ -z "${source_rc_confs_defined}" ]; then if [ -r /etc/defaults/rc.conf ]; then . /etc/defaults/rc.conf source_rc_confs elif [ -r /etc/rc.conf ]; then . /etc/rc.conf fi fi case "$start_vinum" in [Yy][Ee][Ss]) bak=/var/backups rc=0 echo "" echo "Backing up vinum status:" if [ ! -f $bak/vinum.bak ] then echo "no $bak/vinum.bak" vinum l > $bak/vinum.bak || rc=3 fi vinum l > $bak/vinum.tmp || rc=2 if ! cmp -s $bak/vinum.tmp $bak/vinum.bak then [ $rc -lt 1 ] && rc=1 echo "$host vinum diffs:" diff -u $bak/vinum.tmp $bak/vinum.bak mv $bak/vinum.bak $bak/vinum.bak2 mv $bak/vinum.tmp $bak/vinum.bak fi ;; *) rc=0;; esac exit $rc
Responsible Changed From-To: freebsd-bugs->grog Assign to vinum author
On Mon, 14 Jul 2003, Kris Kennaway wrote: > Responsible-Changed-From-To: freebsd-bugs->grog > Responsible-Changed-By: kris > Responsible-Changed-When: Mon Jul 14 03:17:04 PDT 2003 > Responsible-Changed-Why: > Assign to vinum author > > http://www.freebsd.org/cgi/query-pr.cgi?pr=47566 I like this patch and have been using it for a couple of months on a few boxes. I have seen it report actual vinum errors which helped diagnose problems on a box that was playing up here. There is one error, the diff is backwards: @@ -33,7 +33,7 @@ then [ $rc -lt 1 ] && rc=1 echo "$host vinum diffs:" - diff -u $bak/vinum.tmp $bak/vinum.bak + diff -u $bak/vinum.bak $bak/vinum.tmp mv $bak/vinum.bak $bak/vinum.bak2 mv $bak/vinum.tmp $bak/vinum.bak fi -- :{ andyf@speednet.com.au Andy Farkas System Administrator Speednet Communications http://www.speednet.com.au/
Responsible Changed From-To: grog->le With permission of both, reassign from grog to le.
Responsible Changed From-To: le->freebsd-bugs With bugmeister hat on, reassign as le@ has not been active in a while.
For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped
Keyword: patch or patch-ready – in lieu of summary line prefix: [patch] * bulk change for the keyword * summary lines may be edited manually (not in bulk). Keyword descriptions and search interface: <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>