Discussion:
lftp try to get incorrect directory when mirroring ftp
Michael Uleysky
2013-07-20 06:44:06 UTC
Permalink
I run a following command
lftp -c "mirror
ftp://<user>:<pass>@ftp.aviso.oceanobs.com/donnees/ftpsedr/DUACS/global/dt/upd/madt/daily_exp/merged/
aviso/dt"
and lftp quit with message
mirror: Access failed: 550 donnees: No such file or directory
(/donnees/ftpsedr/DUACS/donnees/ftpsedr/DUACS/global/dt/upd/madt/daily_exp/merged)

But I request
/donnees/ftpsedr/DUACS/global/dt/upd/madt/daily_exp/merged/ which
definely exist, not
/donnees/ftpsedr/DUACS/donnees/ftpsedr/DUACS/global/dt/upd/madt/daily_exp/merged

Why lftp try to get non-existent directory?

Michael Uleysky
Alexander V. Lukyanov
2013-07-22 04:56:23 UTC
Permalink
Post by Michael Uleysky
I run a following command
lftp -c "mirror
aviso/dt"
and lftp quit with message
mirror: Access failed: 550 donnees: No such file or directory
(/donnees/ftpsedr/DUACS/donnees/ftpsedr/DUACS/global/dt/upd/madt/daily_exp/merged)
The correct URL would be ftp://<user>:<pass>@ftp.aviso.oceanobs.com/%2Fdonnees/ftpsedr/DUACS/global/dt/upd/madt/daily_exp/merged/
Note the "%2F".

Alternatively, you can specify home-relative directory:
ftp://<user>:<pass>@ftp.aviso.oceanobs.com/global/dt/upd/madt/daily_exp/merged/

See http://lftp.yar.ru/RFC1738 .
--
Alexander.
Loading...