
This is very useful for uploading files from SSH shell.# Description: Quick/Parallel transfer files or mirrors dir's, from a destination host, to a source path #LFTP is a sophisticated file transfer program supporting a number of network protocols (ftp, http, sftp, fish, torrent). Like BASH, it has job control and uses the readline library for input. It has bookmarks, a built-in mirror command, and can transfer several files in parallel. It was designed with reliability in mind.# Read comments within the script, and adjust variables as necessary (specifically the variables at the top, unless you know what you are doing)Useful for mirroring of Linux repositories.
This man page documents lftp version 3.7.7. Lftp is a file transfer program that allows sophisticated ftp, http and other connections to # Example : (quote paths to avoid space parsing)The following example will show you a simple way using the LFTP program on a remote client, making the a FTP server to send files to another FTP server - 'FXP'. Write the following into a file (e.g. For example, when waiting for a directory listing, if lftp received a '226' message, denoting an empty directory, it previously ignored the message and kept waiting.
Hftp isFtp-over-http-proxy protocol. You can specify the method to use in 'open URL' command, e.g. If site is specified then lftp willConnect to that site otherwise a connection has to be established with the open command.Lftp can handle several file access methods - ftp, ftps, http, https, hftp, fish, sftp and file (https and ftps are only available when lftp isCompiled with GNU TLS or OpenSSL library). Lftp is a file transfer program that allows sophisticated ftp, http and other connections to other hosts. /lftp.sync.sh "files/SYNC/Sherlock.S02.HDTV.
So if downloading breaks, it will beRestarted from the point automatically. Seeding is also supported.Every operation in lftp is reliable, that is any not fatal error is ignored and the operation is repeated. SFtp is a protocol implemented in ssh2 as sftp subsystem.Besides FTP-like protocols, lftp has support for BitTorrent protocol as 'torrent' command.
Some commands allow redirecting their output(cat, ls. To list running jobs, use command 'jobs'. You can bring a foreground job to background with ^Z(c-z) and back with command 'wait' (or 'fg' which is alias to 'wait'). All background jobs are executed in the same single process. It is also possible to group commandsWithin () and execute them in background.
Lftp Mirror Example Full Protocol Debug
SomePeople prefer to see full protocol debug, use 'debug' to turn the debug on. You can place aliases and 'set' commands there. Mirror can also synchronize directories between two remote servers, using FXP if available.There is command 'at' to launch a job at specified time in current context, command 'queue' to queue commands for sequential execution for current server,On startup, lftp executes /etc/lftp.conf and then ~/.lftprc and ~/.lftp/rc. There is also reverse mirror (mirror -R) which uploads or updates aDirectory tree on server. The same happens when you have a realLftp has builtin mirror which can download or update a whole directory tree. Commands can be executed conditionally based on termination status of previous command (&,If you exit lftp when some jobs are not finished yet, lftp will move itself to nohup mode in background.
Lftp Mirror Example Software Developed By
If no argument is given theSets the user to anonymous. If value is omitted, the alias is undefined, else it takes the value value. VariableNames can be abbreviated and prefix can be omitted unless the rest becomes ambiguous.If lftp was compiled with OpenSSL (configure -with-openssl), then it includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit.!ls To do a directory listing of the local host.Define or undefine alias name. You can use 'set -a' to see all variables and their values or 'set -d' to see list of defaults.

See 'helpSwitch debugging to level or turn it off. The difference between'ls' and 'cls' is that 'ls' requests the server to format file listing, and 'cls' formats it itself, after retrieving all the needed information. By default only with the current server, use -a to close all idle connections.'cls' tries to retrieve information about specified files or directories and outputs the information according to format options.

You can redirect output of thisObsolete. This can help with servers lacking ls -R support. 'at 08:00 - exit top kill &' kills all jobs and makes lftp exit atList files in the directory (current directory by default) recursively. The options can be combined, e.g.
You can get multiple files by specifying multiple instances of rfile (and -o lfile). If -o is omitted, the file is stored to local file named as base name ofRfile. Retrieve the remote file rfile and store it as the local file lfile. Lftp would fallback to plain copy (via client) if FXP transfer cannot beGet rfile. Ftp://./* or other combinations to get FXP transfer (directly between two ftp servers).
You can redirect output of this command to file or via pipe to external command. You can do 'lcd -' to change the directory back.Print current working directory on local machine.List remote files. The previous local directory is stored as '-'. (For job_no see jobs)Change current local directory ldir. -v means verbose, several -v can be specified.Delete specified job with job_no or all jobs. ''glob echo *''.Print help for cmd or if no cmd was specified print a list of available commands.List running jobs.

