From owner-freebsd-questions@FreeBSD.ORG Thu Apr 18 11:33:34 2013 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 2D8158B9 for ; Thu, 18 Apr 2013 11:33:34 +0000 (UTC) (envelope-from kernel@webrz.net) Received: from thetys.cloudzeeland.nl (webrz.xs4all.nl [83.161.133.58]) by mx1.freebsd.org (Postfix) with ESMTP id E66F2388 for ; Thu, 18 Apr 2013 11:33:33 +0000 (UTC) Received: from thetys.cloudzeeland.nl (thetys.cloudzeeland.nl [10.10.10.31]) by thetys.cloudzeeland.nl (Postfix) with ESMTP id D87EE16445A0 for ; Thu, 18 Apr 2013 13:24:08 +0200 (CEST) Received: from [10.10.10.44] (chimea.cloudzeeland.nl [10.10.10.44]) by thetys.cloudzeeland.nl (Postfix) with ESMTPA id B75221644599 for ; Thu, 18 Apr 2013 13:24:08 +0200 (CEST) Message-ID: <516FD965.3000902@webrz.net> Date: Thu, 18 Apr 2013 13:30:45 +0200 From: Jos Chrispijn User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 To: "freebsd-questions@FreeBSD.org" Subject: RSync exclusion Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP on thetys.cloudzeeland.nl 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: Thu, 18 Apr 2013 11:33:34 -0000 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 Reason for that is that this /photos subfolder contains 12 gb on photos, which I don't want to have in a daily archive (takes too much disk space on a monthly basis). I will syn them on a daily basis to a fixed remote folder (where only the updates will be appended). Can someone tell me how I can do that on one command line? thanks in advance, Jos Chrispijn