I must be seriously misunderstanding the man page coverage of --filter. If I have a dir 'foo/' in the reciver with content 'bar' that I must keep and a 'foo/' on the sender side empty what could possibly be the best way to get the job done? Till now the filter option gone ignored.. Not to mention that at the moment (may be because my bad english, sorry!) I can not find the right syntax..
my script is this: # SHORTHOST=`hostname | awk 'BEGIN { FS="." } { print $1 }'` cd $HOME || exit 1 rsync -n -v -stats -z -a -x \ --filter=':r .bar' --filter=':r foo/' \ --delete-after --delete-excluded --exclude-from=$HOME/.rsync/exclude \ --timeout=999 --log-file=/home/user/log.rsync \ -e 'ssh -p 3434 -c 3des -i .ssh/identity -ax -o ClearAllForwardings=yes' \ $HOME/ r...@server:/home/.BKP/$SHORTHOST and my exclude is : - .cache - .gvfs - .gconf - .gconfd - .mozilla/**/Cache - .mozilla/firefox/*/lock - .mozilla/firefox/*/.parentlock - Desktop/Exclude - media <Snip> Where I get it wrong? Thanks folks for reading this long post! Fred -- istrice <istr...@autistici.org> -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html