[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Excluding folders in rsync command?



> is it possible to exclude directories/folders from a rsync command
> please? i know you can do files using a wildcard like *.avi, but is it
> possible to exclude e.g. /home/boztu/videos ?

You can use the --exclude option if you want to specifiy the directory from the 
commandline. If you want to do it in a filter file just use the name of the 
directory and prepend it with a minus. Like so

+ .rsync
- .rsync/logs

HTH

Grx HdV


Reply to: