Article 50R6T LFTP nightmare

LFTP nightmare

by
atomiccomp
from LinuxQuestions.org on (#50R6T)
I'm trying to backup an ubuntu server with a script file.

to start it going I type lftp -f /backup.sh
however when I manually run it it exits with; cd ok, cwd=/backups
if I run it a second time straight away it runs fine!
So;

group@srv:/home$ lftp -f backup.sh

Gives me;
cd ok, cwd=/backups
lftp group@ideas.webhop.org:~>
At that point it loks like it's logged into the remote server. If I then run the command again it will the start mirroring again. I've used this script before and had no problems till today.
the script contents are;
lftp -u username,password sftp://ideas.webhop.org/backups/
mirror -R -v /home/groupshares/ .
quit

Any help would be greatly app.latest?d=yIl2AUoC8zA latest?i=moyJ60rH2Jk:IGE7s_2UPOs:F7zBnMy latest?i=moyJ60rH2Jk:IGE7s_2UPOs:V_sGLiP latest?d=qj6IDK7rITs latest?i=moyJ60rH2Jk:IGE7s_2UPOs:gIN9vFwmoyJ60rH2Jk
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments