ftp

Have you ever encountered the problem to backup a complex webspace, only accessible via ftp? No chance to tar or rsync? Then you need a good ftp client capable of doing a recursive download of the site, optimally able to mirror source and destination.

The best ftp client I have found so far: lftp

Alternatives: ncftp, ncftpget, wget

lftp in action:

lftp -u user,password -e "mirror --delete --only-newer -v --log sync.log -a /htdocs/ /www/domain/www/htdocs" www.domain.tld

This will download the complete docroot of the webspace account, doing a mirror with (priviously) dowloadete parts of that webspace.

lftp -u user,password -e "mirror --reverse --delete --only-newer -v --log sync.log -a /htdocs/ /www/domain/www/htdocs" www.domain.tld

This will upload a complete site

lftp is able to do much more - see the manpage for details!

linux/ftp.txt · Last modified: 2009/05/13 11:48 by tb
CC Attribution-Noncommercial-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0