The "mirror" command is all you need to copy/mirror a site with lftp:
$ lftp
lftp :~> connect ftp.domain.tld
lftp ftp.domain.tld:~> login <username>
lftp ftp.domain.tld:~> mirrorHere's a one liner:
$ lftp -e mirror -u <username>,<password> <host>
lftpMirroring sites with lftpSubmitted by sandip on Sat, 11/17/2007 - 19:45The "mirror" command is all you need to copy/mirror a site with lftp: $ lftpHere's a one liner: $ lftp -e mirror -u <username>,<password> <host>cleanup ftp backups with bash shell scriptSubmitted by sandip on Wed, 08/29/2007 - 22:54Here's a small bash code snippet to clean up ftp backups maintained by date. Specifically, if using the SysBK to backup to an external server with just ftp access. It should be run daily via cron and cleans up folders older than 14 days. #!/bin/bashThe du option will output the space currently being used by the backups. NOTE: For security reasons, you should use ftps protocol to connect to the remote backup server if possible, and can force it via: set ftp:ssl-force trueThis can also be put in the "~/.lftprc" or "~/.lftp/rc" file. »
lftp with TLS/SSLSubmitted by sandip on Tue, 07/24/2007 - 22:52lftp ftp client support tls/ssl so why not use a secure connection for ftp. $ lftpInsist on your host to serve up ftp with tls/ssl support so all data is secured. If using proftpd server, tls/ssl can be configured via "/etc/proftpd.conf": <IfModule mod_tls.c>The certificate can be generated to be used on the ftp server via: # cd /etc/pki/tls/proftpd/Reference: |
User loginRecent blog posts
Who's onlineThere are currently 0 users and 10 guests online.
|