4

Googled around and looked on this forum but couldn't find if I can pause a download using lftp.

Currently downloading tons of logs and would like to pause, add more drives to the system and continue downloading.

Thanks

chowpay
  • 1,515
  • 6
  • 22
  • 44

2 Answers2

6

You can either suspend the whole lftp process (command suspend) or limit transfer rate to e.g. 1Bps (set net:limit-total-rate 1). In either case the files being transferred remain open. You can also stop the transfer and continue it later using -c option of get or mirror.

lav
  • 1,351
  • 9
  • 17
  • 1
    Is lftp really support continue for mirror? I try `mirror -c ` after interrupt and I have new download (so, my before loaded files are recreated). – Yura Shinkarev Oct 06 '18 at 12:10
1

In the TUI, Ctrl+Z pauses the command, and wait or fg resumes it.

$ lftp http://192.168.1.22/Backups
lftp :~> mirror 2023-04-24/
[mirroring]
^Z
[0] mirror 2023-04-24/
lftp :~> (do something else)
lftp :~> fg
[mirroring]
NathanOliver
  • 171,901
  • 28
  • 288
  • 402