1997-08-16 17:04:02 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
1999-08-27 23:37:10 +00:00
|
|
|
# $FreeBSD$
|
1997-08-16 17:04:02 +00:00
|
|
|
#
|
|
|
|
bak=/var/backups
|
|
|
|
|
|
|
|
if [ -f /etc/aliases ] ; then
|
|
|
|
echo ""
|
|
|
|
echo "Backing up mail aliases:"
|
|
|
|
|
|
|
|
if [ ! -f $bak/aliases.bak ] ; then
|
|
|
|
echo "no $bak/aliases.bak"
|
|
|
|
cp -p /etc/aliases $bak/aliases.bak
|
|
|
|
fi
|
|
|
|
|
|
|
|
if cmp -s $bak/aliases.bak /etc/aliases; then :; else
|
|
|
|
echo "$host aliases diffs:"
|
1999-12-28 21:38:12 +00:00
|
|
|
diff -u $bak/aliases.bak /etc/aliases
|
1997-08-16 17:04:02 +00:00
|
|
|
mv $bak/aliases.bak $bak/aliases.bak2
|
|
|
|
cp -p /etc/aliases $bak/aliases.bak
|
|
|
|
fi
|
|
|
|
fi
|