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)
--
Best,
Ben