Upload a directory recursively to an FTP server
- by Nicolas Raoul
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