I discovered that if etc/ is in an exclude file ,anything with etc will also be excluded,e.g. /usr/etc , /usr/local/etc ,and so on.Command i used: rsync -av -e ssh / mike:/ --exclude-from=/home/michael/excludes_mike --delete and /home/michael/excludes_mike read at first dev/ mnt/ proc/ tmp/ home/michael/Shared/* home/michael/Incomplete/* backup/ etc/ Later when i removed /etc from this list,changing it to mnt/ proc/ tmp/ home/michael/Shared/* home/michael/Incomplete/* backup/ etc/HOSTNAME etc/fstab etc/inittab etc/ssh/ etc/ssl/ etc/hotplug.d/ etc/hotplug/ every file with etc (not belonging to /etc )in its name was sync-ed,which must mean they had been previously excluded. -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
On Sun, Nov 14, 2004 at 04:49:07AM -0200, michael wrote:> I discovered that if etc/ is in an exclude file ,anything with etc will > also be excluded,e.g. /usr/etc , /usr/local/etc ,and so on.Which is to be expected, since that's what excluding "etc/" means: to exclude a directory named "etc" at any level of the hierarchy. You can read the EXCLUDE PATTERNS section of the docs here: http://rsync.samba.org/ftp/rsync/rsync.html Perhaps you meant to anchor the name by using a leading '/'? ..wayne..