This lftp script mirrors a local directory to a remote server. It's mostly cribbed from nwgwat's lftp scripts.

Basically, I hardcoded some parameters & zuzz'd up a simple shell command. It's simple, but when you can't use s3_website to deploy your project (e.g. it's a PHP script or you're using a shared hosting provider like Dreamhost), FTPloy comes in pretty handy.

lftp ftp://USERNAME:PASSWORD@HOST -e 'mirror -R --verbose --use-pget-n=8 -c 'local_path' 'remote_path''

Built With

Share this project:

Updates