rdist and hard links

rdist and hard links

Post by Vincent D. Skah » Tue, 30 Nov 1993 04:45:22



In updating a new installation of 'Elm' on multiple remote sites from
one master location, I decided to go for a rdist solution since I build
things with everything under one tree per package and that's a simple
distfile.

I was suprised to see it barking about me regarding the inability to
duplicate hard links that the Elm installation uses.  I checked it
out and it indeed didn't have anything on the remote sites for those
files.

Does that behavior make sense ?
Are there any workarounds ?

If it matters, I'm running on HP/Apollo Domain/OS version 10.4 on the
'sending' side and Domain/OS version 10.3 on the receiving side.

Here's the 'what' output for the new and old o/s versions of rdist if they'll
help...neither set of man pages mention anything about hard links.

Domain/OS 10.4
==============
rdist:
        docmd.c 5.8 (Berkeley) 3/1/91
        expand.c        5.6 (Berkeley) 6/1/90
        gram.y  5.6 (Berkeley) 6/1/90
        lookup.c        5.5 (Berkeley) 6/1/90
         Copyright (c) 1983 Regents of the University of California.
        main.c  5.6 (Berkeley) 8/27/90
        server.c        5.15 (Berkeley) 3/1/91

Domain/OS 10.3
=============
rdist:
        docmd.c 5.1 (Berkeley) 6/6/85
        expand.c        4.1 - 88/11/17
        expand.c        5.2 (Berkeley) 3/28/86
        gram.y  5.2 (Berkeley) 85/06/21
        lookup.c        4.1 - 88/11/17
        lookup.c        5.1 (Berkeley) 6/6/85
        main.c  4.1 - 88/11/17
         Copyright (c) 1983 Regents of the University of California.
        main.c  5.1 (Berkeley) 6/6/85
        server.c        4.1  - 88/11/17

--

 
 
 

1. rdist and hard link

I would like to sync /usr/local/bin on two NFS servers.
And it seems rdist is the right tool to do this, or isn't it?

The first problem I have with hard links.
/opt/local/bin/copyroot- is linked to /opt/local/bin/copyroot
but on the remote site, why it tries to link
/opt/local/bin/copyroot- to /opt/local/tmp/opt/local/bin/copyroot?

Here is my rdist script:

#!/bin/ksh

PATH=/usr/bin

cat << EOF | rdist -R -f -

FILES=(/opt/local/bin/{*})
(\${FILES})->(\${HOSTS})
install -R /opt/local/tmp;
\${FILES}::/opt/local/etc/rdist-ulocal.timestamp
EOF

And here is the error message:

updating host mwangrs.cicgtech.ml.com
installing: /opt/local/bin/copyroot-
rdist: mwangrs:can't link /opt/local/tmp/copyroot- to /opt/local/tmp//opt/local/bin/copyroot

Is there any documentation on rdist beside manpage? Thanks.

2. X-Emacs 20.2

3. About Hard Link/soft link

4. wedding between MS windows and X-windows

5. how do I determine which file is linked to another (hard link)

6. I'm new with Linux and need HELP..

7. Hard links vs. Soft links

8. message queues?

9. Soft Link vs Hard Link

10. A hard link or a symbolic link?

11. Hard link to sym link - how to make?

12. hard links v soft links

13. hard links and symbolic links