On Sat, Dec 13, 2003 at 10:54:34AM -0500, Tim Boyer
wrote:> I'm running rsync 2.5.7 on Data General dg/ux 4.20, and just noticed
that
> the --delete command is not deleting.
>
> # />ls -la /test
> total 5
> drwxr-xr-x 2 root other 512 Dec 13 10:46 .
> drwxr-xr-x 37 root root 1536 Dec 13 10:46 ..
> -rw-r--r-- 1 root other 0 Dec 13 10:46 a
> -rw-r--r-- 1 root other 0 Dec 13 10:46 b
> -rw-r--r-- 1 root other 0 Dec 13 10:46 c
>
> # />ls -la /test1
> total 5
> drwxr-xr-x 2 root other 512 Dec 13 10:47 .
> drwxr-xr-x 37 root root 1536 Dec 13 10:46 ..
> -rw-r--r-- 1 root other 0 Dec 13 10:46 d
> -rw-r--r-- 1 root other 0 Dec 13 10:46 e
> -rw-r--r-- 1 root other 0 Dec 13 10:47 f
>
> # />rsync -a --delete /test/* /test1
Unless you specify a directory it cannot delete.
Try that with
# />rsync -a --delete /test/ /test1
instead
> # />ls -la /test1
> total 5
> drwxr-xr-x 2 root other 512 Dec 13 10:50 .
> drwxr-xr-x 37 root root 1536 Dec 13 10:49 ..
> -rw-r--r-- 1 root other 0 Dec 13 10:46 a
> -rw-r--r-- 1 root other 0 Dec 13 10:46 b
> -rw-r--r-- 1 root other 0 Dec 13 10:46 c
> -rw-r--r-- 1 root other 0 Dec 13 10:49 d
> -rw-r--r-- 1 root other 0 Dec 13 10:50 e
> -rw-r--r-- 1 root other 0 Dec 13 10:50 f
>
> Works fine under Linux, of course.
>
> I'm more than willing to dive into the code, but I've got no idea
where to
> start. Thanks for any suggestions...
--
________________________________________________________________
J.W. Schultz Pegasystems Technologies
email address: jw@pegasys.ws
Remember Cernan and Schmitt