IT/Software/Command Line Applications/lftp: Difference between revisions
Access restrictions were established for this page. If you see this message, you have no access to this page.
Walttheboss (talk | contribs) (Created page with "lftp -c "open 192.168.1.41:2121/Music; mirror -R -P 3 --ignore-time --delete" -c run a command mirror make two directories identical. typically remote to local -R makes mir...") |
Walttheboss (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
lftp -c "open 192.168.1.41:2121/Music; mirror -R -P 3 --ignore-time --delete" | lftp -c "open 192.168.1.41:2121/Music; lcd /local/directory; mirror -R -P 3 --ignore-time --delete" | ||
-c run a command | -c run a command | ||
Line 14: | Line 14: | ||
--delete will remove files if no longer in the source. | --delete will remove files if no longer in the source. | ||
lcd /local/directory; this is a separate command that specifies the local directory so that you can more easily script lftp |
Revision as of 04:42, 16 September 2020
lftp -c "open 192.168.1.41:2121/Music; lcd /local/directory; mirror -R -P 3 --ignore-time --delete"
-c run a command
mirror make two directories identical. typically remote to local
-R makes mirror local to remote
-P number specifies number of parallel connections
--ignore-time will only compare file size and existence
--continue will try again or resume if the connection fails.
--delete will remove files if no longer in the source.
lcd /local/directory; this is a separate command that specifies the local directory so that you can more easily script lftp