LFTP for Windows
Download LFTP Builds (now in 64-bit flavour)
- Full credits goes to lftp developers for their awesome software, donate to them
- new builds are also heartbleed fixed
- having issues?, first test it on a linux system to confirm its a real lftp bug or a cygwin issue, post in the blog forum, to cygwin issue tracker or lftp issue tracker
You can use the choco package manager for windows
Simple setup guide to choco with ssh batch examples (chocolately)
choco install lftp
(latest)choco install lftp --version 4.9.2
(* auto 32/64)choco install lftp --version 4.8.0
(* auto 32/64)choco install lftp --version 4.7.5
(* auto 32/64)- *Can now run everywhere in cmd/powershell
or download standalone
older builds at https://lftp.nwgat.ninja
Version 4.9.2 - 2020-08-13
mkdir: fixed exit code with -f option.
ftp: made ftp:use-pret setting tri-boolean.
get/mget/put/mput: don't try next files after error if cmd:fail-exit is true.
get/mget: fixed -O option with remote URL and xfer:use-temp-file being true.
mirror: disallow empty patterns; don't delete "..".
mirror: fixed --on-change with --reverse.
sftp: fixed a bug with truncated files when packets are reordered (finally).
older changelogs can be found at offical lftp site
up to date lftp builds for windows
Use in a batch script
Research
I have been reseaching on howto get lftp with sftp/ssh working property on windows, it is a bit funky running under windows using standalone cygwin binaries, but it does work
Some things i noticed is
- You have to add
./ssh.exe
orssh.exe
to commandline to get it to work correctly
(on chocolately ssh
works)
You have to use/cygdrive/driveletter/folder
as source or dest path depending on which way you want to mirror- using quotes works like "C:\path\folder" (thanks todd)
if you want to cancel a download press Ctrl + C
and am fully aware ssh.exe will spawn a few windows for each process, this started to happen in the latest lftp builds on windows 10 for some reason (fixed in 4.6.4?)