blob: a9b1e253c97bccda528c80602223d96ce3675c38 (
plain)
- #!/bin/sh
- #
- # /usr/local/sbin/localbackupconfig
- # Copyright 2001 Jonas Smedegaard <dr@jones.dk>
- #
- # $Id: localbackupconfig,v 1.1 2002-03-25 15:52:49 jonas Exp $
- #
- FQDN=`hostname -f`
- BACKUPDIR=/var/local/backups/$FQDN
- find $BASE -path '*Attachments*' -size +15000k -exec rm '{}' ';'
- for i in `find /etc -name '*.orig' | sed -e 's,\.orig$,,'`; do
- if [ -e $i ]; then
- mkdir -p $BACKUPDIR/`dirname $i`
- cp -fa $i $BACKUPDIR/$i
- diff -ruN $i.orig $i > $BACKUPDIR/$i.diff
- fi
- done
|