Upload a directory recursively to an FTP server
Posted
by
Nicolas Raoul
on Server Fault
See other posts from Server Fault
or by Nicolas Raoul
Published on 2011-01-11T06:46:29Z
Indexed on
2011/01/11
6:54 UTC
Read the original article
Hit count: 267
I am writing a Linux shell script to copy a local directory to a remote server (removing any existing files).
Local server: ftp and lftp commands are available, no ncftp or any graphical tools.
Remote server: only accessible via FTP. No rsync nor SSH nor FXP.
I am thinking about listing local and remote files to generate a lftp script and then run it. Is there a better way?
Note: Uploading only modified files would be a plus, but not required
© Server Fault or respective owner