[CentOS] Auto exit lftp on bash script
Alan Hoffmeister
alangtk at gmail.com
Wed Jan 27 16:34:38 UTC 2010
Em 27/01/2010 13:56, Henrik escreveu:
> On 2010-01-26 19:24, Alan Hoffmeister wrote:
>
>> #####################
>> #lftp will make the backup
>> lftp -u user,password -e "mirror --reverse --delete --only-newer
>> --verbose /var/bkp /test_bkp" somehost.com>> $LOGFILE
>>
>>
>>
> ;quit does work in my script:
> lftp -e 'put 'some.file';quit' -p 21 -u user,pass 1.1.1.1
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
You mean:
lftp -e "mirror --reverse --delete --only-newer --verbose /var/bkp
/test_bkp ;quit" -u user,password somehost.com
??
More information about the CentOS
mailing list