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.


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.