30 March 2010

Reverse mirroring with lftp

$ lftp -u username,password -e "mirror --reverse -x .*tif --only-newer --verbose /home/me/path/somewhere ." example.org

I'm using a hosting account that supports ftp but not rsync. Fortunately, lftp provides rsync-like capability: reverse mirroring. The above command will copy the local directory /home/me/path/somewhere to the remote directory . (wherever you land when you first log in) on example.org, excluding files that end in "tif", only copying newer files.

Joe

No comments:

Post a Comment

About Me

blog at barillari dot org Older posts at http://barillari.org/blog