Upload or update an entire directory

lftp

mirror -R {{path/to/local_dir}} {{path/to/remote_output_dir}}

click the source code to copy install lftp on any operating system with command-not-found.com