Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


mirroring_with_lftp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
mirroring_with_lftp [2009/09/04 11:41] juckinsmirroring_with_lftp [2011/08/01 16:37] (current) juckins
Line 1: Line 1:
-To mirror a website and do some sophisticated FTP commands, check out [[http://lftp.yar.ru/|lftp]] +To mirror a website and do some sophisticated FTP commands, check out [[http://lftp.yar.ru/|lftp]] \\ 
-To mirror a directory, cd to local directory then do the following:+To mirror a directory, cd to local directory first and then do the following:
 <code> <code>
 $ lftp [email protected] $ lftp [email protected]
-lftp> mirror -R -n+lftt> cd <directory_as_appropriate> 
 +lftp> mirror -R -e -v -n (use --dry-run to just list files)
 </code> </code>
 +-R puts files from local machine to remote machine \\
 +-e deletes files on remote machine that aren't on local machine \\
 +-v is verbose mode \\
 +-n transfers only new files \\
 +
 +Other tips: \\
 +[[http://tutorials.papamike.ca/pub/lftp.html]]
mirroring_with_lftp.1252078894.txt.gz · Last modified: 2009/09/04 11:41 by juckins