freebsd-dev/etc/periodic/daily/220.backup-distfile
1999-08-27 23:37:10 +00:00

16 lines
271 B
Bash
Executable File

#!/bin/sh
#
# $FreeBSD$
#
bak=/var/backups
if [ -f /etc/Distfile ]; then
echo ""
echo "Backing up /etc/Distfile:"
if cmp -s $bak/Distfile.bak /etc/Distfile; then :; else
mv $bak/Distfile.bak $bak/Distfile.bak2
cp /etc/Distfile $bak/Distfile.bak
fi
fi