From owner-freebsd-questions@FreeBSD.ORG Fri Feb 13 17:12:38 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 21F3D16A4CE for ; Fri, 13 Feb 2004 17:12:38 -0800 (PST) Received: from spam2.snu.ac.kr (spam2.snu.ac.kr [147.46.10.68]) by mx1.FreeBSD.org (Postfix) with SMTP id 654A243D31 for ; Fri, 13 Feb 2004 17:12:37 -0800 (PST) (envelope-from nospam@users.sourceforge.net) Received: (snipe 30140 invoked by alias); 14 Feb 2004 10:12:33 +0900(KST) Received: from nospam@users.sourceforge.net with SpamSniper2.76 (Processed in 0.044614 secs); Received: from unknown (HELO sis1.snu.ac.kr) (147.46.10.36) by 0 with SMTP; 14 Feb 2004 10:12:33 +0900(KST) X-RCPTTO: freebsd-questions@freebsd.org, Received: from users.sourceforge.net ([147.47.254.184]) by sis1.snu.ac.kr (8.12.10/8.12.10) with ESMTP id i1E19EwT103306 for ; Sat, 14 Feb 2004 10:09:14 +0900 Message-ID: <402D7601.2070003@users.sourceforge.net> Date: Sat, 14 Feb 2004 10:12:33 +0900 From: Rob User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040211 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: rsync: exclude doesn't work? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Feb 2004 01:12:38 -0000 Hi, I use rsync to back up my files, but I want to exclude uninteresting bulk files in cache directories of netscape, opera and mozilla. After reading the man pages, I use following call: /usr/local/bin/rsync \ --exclude "rob/.netscape/cache/" \ --exclude "rob/.mozilla/**/Cache/" \ --exclude "rob/.opera/cache4/" \ -avzC /home/rob /home/BACKUP However, the exclude lines seem to be ineffective; all the cache directories are rsync'ed each time this backup script runs. Any ideas why that is? Thanks Rob.