From owner-freebsd-questions@FreeBSD.ORG Fri Apr 19 18:40:39 2013 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 5BF741E0 for ; Fri, 19 Apr 2013 18:40:39 +0000 (UTC) (envelope-from erichsfreebsdlist@alogt.com) Received: from alogt.com (alogt.com [69.36.191.58]) by mx1.freebsd.org (Postfix) with ESMTP id 297F314F4 for ; Fri, 19 Apr 2013 18:40:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=alogt.com; s=default; h=Content-Transfer-Encoding:Content-Type:Mime-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date; bh=0FaSuNE+GSBmeu7f68uPtKCevJMS1yelfQEUzmwNJ2E=; b=jT/N4fsL73nTqpCTX6sfyPsk+oyQtQjoSvMN93AL/2AQomhVKNr0dGYGrnM5AuJ/LY9CJt+u+OZn89ZnTUezZ+jvOv6itWfDKvh1YD/ItCiEzs6qHYA+2X7Q83DTvX8YhJQb45Q7WOqJni8K5qd6Z0/CvpCz8Zps4kMWlveZ7zo=; Received: from [122.129.203.50] (port=49267 helo=X220.ovitrap.com) by sl-508-2.slc.westdc.net with esmtpsa (SSLv3:DHE-RSA-AES128-SHA:128) (Exim 4.80) (envelope-from ) id 1UT6rH-002XWh-WD; Fri, 19 Apr 2013 02:39:52 -0600 Date: Fri, 19 Apr 2013 15:39:47 +0700 From: Erich Dollansky To: Jos Chrispijn Subject: Re: RSync exclusion Message-ID: <20130419153947.3263e4e9@X220.ovitrap.com> In-Reply-To: <516FD965.3000902@webrz.net> References: <516FD965.3000902@webrz.net> X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.6; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sl-508-2.slc.westdc.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - alogt.com X-Get-Message-Sender-Via: sl-508-2.slc.westdc.net: authenticated_id: erichsfreebsdlist@alogt.com X-Source: X-Source-Args: X-Source-Dir: Cc: "freebsd-questions@FreeBSD.org" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Apr 2013 18:40:39 -0000 Hi, On Thu, 18 Apr 2013 13:30:45 +0200 Jos Chrispijn wrote: > I have a local folder called /files/ > In my daily backup event I create as per day a backkup folder that > contains this /files folder including all its sub folders > > --- cut --- > > rsync -avrz -e ssh /files/ backupr@x.x.x.x:/vol1/FreeBSD/$DATE/ > > In this /files folder, amongst others, I have another folder called > photos: /files/photos > > What I now would like to do is sync the /files folder with an > exclusion on the /files/photos folder I use the following option: --exclude '/data/Mail/*' /data/Mail is rooted in the directory I want to copy. Erich