I missed 'mirror'.
The docs are clear here on how to flatten links.
It's working well.
On 9 Feb 1998, Manoj Srivastava wrote:
> >>"G" == G John Lapeyre <firstname.lastname@example.org> writes:
> G> How do I get a mirror program to either copy symlinks and the files
> G> and directories they point to. or follow the sym link and simply
> G> copy what it points to
> G> I have tried every mirroring program I can find.
> I note you have not tried the grand-dady, amusing called
> mirror. Or wget -r.
> Mirror can handle symbolic links but not ordinary links.
> It does not duplicate owner or group information. If you
> require any of these options, use rdist(1) instead.
> G> They all just copy the symlink and not the file. The man pages
> G> don't address the problem at all. I have tried fmirror, lftp and
> G> lurkftp.
> If the remote site contains symlinks that you want to
> "flatten out" into the corresponding files, then do this
> by changing the flags passed to the remote ls:
> First test this by trying a ls -lRatL on the remote site
> under the ftp command to check whether the remote file-
> store has any symlink loops.
> If true, symlinks will be made to invalid
> (non-existent) pathnames. Under older ver
> sions this defaulted to true. [false]
> Regexp of pathnames that should be followed
> to the file or directory they point at.
> This makes local symlinks invisible to mir
> ror. ['']
> "The road to hell is paved with melting snowballs." --Larry Wall in
> Manoj Srivastava <email@example.com> <http://www.datasync.com/%7Esrivasta/>
> Key C7261095 fingerprint = CB D9 F4 12 68 07 E4 05 CC 2D 27 12 1D F5 E8 6E
G John Lapeyre <firstname.lastname@example.org>