Auto upload data using lftp
Issue
-
rhel can ftp to ftp server without issue, ftp server can not access rhel server.
-
so i want to use cron job to upload backup data to ftp server. in window, i know how to write auto-batch file for ftp, not in linux. pls advise to write a file for it.
eg, an example file in window
open ftp-server
userid
pw
ls -l
binary
prompt
mget *.gz
bye
Environment
- Red Hat Enterprise Linux 6.4
- lftp-4.0.9-1.el6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
