Discussion:
mirror following symlinks with SFTP
Alex Mason
2013-02-20 18:49:19 UTC
Permalink
The mirror command seems to ignore symbolic links when using SFTP.

It appears lftp detects symlinks by parsing ls output, and following target specified after -> which follows the file name. Unfortunately it seems at least in my setup that the ls output doesn't include the link target (which seemingly has to be requested specially). That makes the symlink check fail and it's never downloaded.

Not sure how to workaround this issue at present, apart from use hard links (won't work with dirs), or not use SFTP as the protocol.
Alex Mason
2013-04-17 04:57:00 UTC
Permalink
Anyone?
Post by Alex Mason
The mirror command seems to ignore symbolic links when using SFTP.
It appears lftp detects symlinks by parsing ls output, and following target specified after -> which follows the file name. Unfortunately it seems at least in my setup that the ls output doesn't include the link target (which seemingly has to be requested specially). That makes the symlink check fail and it's never downloaded.
Not sure how to workaround this issue at present, apart from use hard links (won't work with dirs), or not use SFTP as the protocol.
Alexander V. Lukyanov
2013-04-18 08:31:07 UTC
Permalink
Post by Alex Mason
Anyone?
I have committed a fix to github. Please test.
Post by Alex Mason
Post by Alex Mason
The mirror command seems to ignore symbolic links when using SFTP.
It appears lftp detects symlinks by parsing ls output, and following target specified after -> which follows the file name. Unfortunately it seems at least in my setup that the ls output doesn't include the link target (which seemingly has to be requested specially). That makes the symlink check fail and it's never downloaded.
Not sure how to workaround this issue at present, apart from use hard links (won't work with dirs), or not use SFTP as the protocol.
--
Alexander.

Loading...