mirroring_with_lftp
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
mirroring_with_lftp [2009/08/23 21:02] – created juckins | mirroring_with_lftp [2025/03/20 19:59] (current) – juckins | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | To mirror | + | ==== Using lftp to Mirror |
+ | To mirror a website and do some sophisticated FTP commands, check out [[http:// | ||
+ | To mirror a directory, cd to local directory first and then do the following: | ||
+ | < | ||
+ | $ lftp [email protected] | ||
+ | lftt> cd < | ||
+ | lftp> mirror -R -e -v -n (use --dry-run to just list files) | ||
+ | </ | ||
+ | -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:// |
mirroring_with_lftp.1251075754.txt.gz · Last modified: 2009/08/23 21:02 by juckins