Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Apr 2013 15:39:47 +0700
From:      Erich Dollansky <erichsfreebsdlist@alogt.com>
To:        Jos Chrispijn <kernel@webrz.net>
Cc:        "freebsd-questions@FreeBSD.org" <freebsd-questions@FreeBSD.org>
Subject:   Re: RSync exclusion
Message-ID:  <20130419153947.3263e4e9@X220.ovitrap.com>
In-Reply-To: <516FD965.3000902@webrz.net>
References:  <516FD965.3000902@webrz.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

On Thu, 18 Apr 2013 13:30:45 +0200
Jos Chrispijn <kernel@webrz.net> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130419153947.3263e4e9>