Excluding a complete subdirectory

Crossconnexion crossconnexion at yahoo.com
Thu Jun 9 16:34:03 GMT 2005


i'm trying to use rsync to backup some directories of
my box.

i.e. i will backup the whole subtree /opt/ except
/opt/apache/ and except /opt/kde3. the rest in /opt/
should be copied to my external usb harddisk.

but i can't find a way to do this, because apache and
kde3 are always included in the backup.

here is the rsync-call:
rsync --backup  --one-file-system \
      --delete --backup-dir=/mnt/backup/archive \
      --archive --ignore-errors \
      --exclude-from=/home/thomas/backup_exclude \
      /opt/ /mnt/backup/current

content of /home/thomas/backup_exclude

some other versions of the exclude file i've tried:
- /opt/apache/
- /opt/kde3/
- /opt/apache/*
- /opt/kde3/*

the result is: the whole /opt/ directory is backuped,
including apache and kde3 :(

i'm using version 2.4.6  protocol version 24

do you have any ideas? 

thanks in advance for your help.


Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de

More information about the rsync mailing list