[CentOS] Auto exit lftp on bash script

Akemi Yagi amyagi at gmail.com
Tue Jan 26 18:54:52 UTC 2010


On Tue, Jan 26, 2010 at 10:24 AM, Alan Hoffmeister <alangtk at gmail.com> wrote:
> Hello again!
>
> I have this piece od code:
>
> #####################
> #lftp will make the backup
> lftp -u user,password -e "mirror --reverse --delete --only-newer
> --verbose /var/bkp /test_bkp" somehost.com >> $LOGFILE

Try format that looks like:

lftp -e 'open <somewhere> && mirror <something> && exit'

Akemi


More information about the CentOS mailing list