rsync --exclude-from-file not working

Johan johansche at telkomsa.net
Mon Mar 29 06:14:33 MDT 2010


On 03/28/2010 07:35 PM, Benjamin R. Haskell wrote:
> On Sun, 28 Mar 2010, Johan wrote:
> 
>> Good day,
>>
>> rsync does load and read the file but does not act on it.
>>
>> If I change the filename rsync complains.
>> I must be doing something wrong.
> 
> The paths for 'exclude-from' should be relative to the root directory of 
> your source.  (So, omit the '/begin/' portion of the path.)
> 
> $ cd rsync-test
> $ mkdir -p begin/subdir
> $ touch begin/{a,b,c,d}
> $ touch begin/subdir/{x,y,z}
> $ cat exclude
> - b
> - d
> - subdir/y
> $ rsync --dry-run -av --exclude-from=exclude begin/ end
> sending incremental file list
> created directory end
> ./
> a
> c
> subdir/
> subdir/x
> subdir/z
> 
> sent 140 bytes  received 31 bytes  342.00 bytes/sec
> total size is 0  speedup is 0.00 (DRY RUN)
> 
Thanks.
Appreciate your assistance.
Now all is well and a better understanding.

May you have a nice day
Regards
Johan Sch


More information about the rsync mailing list