RSync exclusion

Erich Dollansky erichsfreebsdlist at alogt.com
Fri Apr 19 18:40:39 UTC 2013


Hi,

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



More information about the freebsd-questions mailing list