I'm very confused. I ran this command:
/usr/local/bin/rsync -aCHh --stats --delete-after --delete-excluded \
--exclude="/backup/" --exclude-from=/var/.rexcludes \
/ /backup/daily.0
then I ran these commands
mail ~ $ ls -ls etc/postfix/main.cf
28 -rw-r--r-- 1 root wheel 28322 Jul 27 16:31 /etc/postfix/main.cf
mail ~ $ ls -ls /backup/daily.0/etc/postfix/main.cf
28 -rw-r--r-- 1 root wheel 28322 Jul 27 16:31 /backup/daily.0/etc/
postfix/main.cf
mail ~ $ echo "#test" >> /etc/postfix/main.cf
mail ~ $ ls -ls /etc/postfix/main.cf
28 -rw-r--r-- 1 root wheel 28328 Jul 28 03:39 /etc/postfix/main.cf
mail ~ $ ls -ls /backup/daily.0/etc/postfix/main.cf
28 -rw-r--r-- 1 root wheel 28328 Jul 28 03:39 /backup/daily.0/etc/
postfix/main.cf
So, yes, when I make a change to the file in /etc/ it gets changed in
the backup. /backup is a different file system from /. The files do
not report as being linked.
/var/.rexcludes contains:
SPAM/
*.core
tmp/*
*.mov
*.avi
*.mp3
buos/
(buos is an ftp account that is not backed up as it's files are
transitory and change frequently)
mail ~ $ rsync --version
rsync version 2.6.9 protocol version 29
Copyright (C) 1996-2006 by Andrew Tridgell, Wayne Davison, and others.
<http://rsync.samba.org/>
Capabilities: 64-bit files, socketpairs, hard links, symlinks,
batchfiles,
inplace, IPv6, file flags, 32-bit system inums, 64-bit
internal inums
System is FreeBSD 6.2-RELEASE #0
Something stupid, I presume?