{"id":750,"date":"2017-02-05T16:54:42","date_gmt":"2017-02-06T01:54:42","guid":{"rendered":"\/blog\/?p=750"},"modified":"2023-09-21T09:37:48","modified_gmt":"2023-09-21T00:37:48","slug":"lftp-%ec%82%ac%ec%9a%a9-%eb%b0%a9%eb%b2%95","status":"publish","type":"post","link":"https:\/\/hasu0707.duckdns.org\/blog\/?p=750","title":{"rendered":"lftp \uc0ac\uc6a9 \ubc29\ubc95"},"content":{"rendered":"\n<p style=\"font-size: 12px;\"><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">man page :&nbsp;<\/span><a href=\"http:\/\/lftp.tech\/lftp-man.html\" target=\"_blank\" rel=\"noopener\"><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">http:\/\/lftp.tech\/lftp-man.html<\/span><\/a><\/p>\r\n<p style=\"font-size: 12px;\"><br \/><\/p>\r\n<p style=\"font-size: 12px;\"><br \/><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">\u25a0 sftp \uc811\uc18d \uc608<\/span><\/p>\r\n<p><br \/><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">lftp -u \"<span style=\"background-color: rgb(255, 218, 237); color: rgb(0, 0, 0);\">&lt;userid&gt;,&lt;password&gt;<\/span>\" -e \"cache off; set sftp:charset utf8; <span style=\"color: rgb(255, 108, 0);\">set sftp:auto-confirm yes<\/span>; set net:timeout 60; set net:reconnect-interval-base 5; set net:max-retries 10; mirror -e -v <span style=\"color: rgb(58, 50, 195);\">\/remote_dir<\/span> <span style=\"color: rgb(255, 0, 0);\">\/local_dir<\/span>; exit\" <span style=\"background-color: rgb(228, 255, 117); color: rgb(0, 0, 0);\">sftp:\/\/ssh.mysite.com:22<\/span><\/span><\/p>\r\n<p><br \/><\/p>\r\n<p><br \/><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">\u25a0 ftp \uc811\uc18d \uc608<\/span><\/p>\r\n<p><br \/><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">lftp -u \"<span style=\"background-color: rgb(255, 218, 237); color: rgb(0, 0, 0);\">&lt;userid&gt;,&lt;password&gt;<\/span>\" -e \"cache off; set ftp:charset utf8; set net:timeout 60; set net:reconnect-interval-base 5; set net:max-retries 10; mirror -e -v<span style=\"color: rgb(58, 50, 195);\"> \/remote_dir<\/span> <span style=\"color: rgb(255, 0, 0);\">\/local_dir<\/span>; exit\" <span style=\"background-color: rgb(228, 255, 117); color: rgb(0, 0, 0);\">ftp:\/\/ftp.mysite.com<\/span><\/span><\/p>\r\n<p><br \/><\/p>\r\n<p><br \/><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">\u25a0 \uc124\uba85<\/span><\/p>\r\n<p><br \/><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">cache off; \uce90\uc26c \uc548\ud568<\/span><br \/><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">set sftp:charset utf8; sftp\uc758 \ud30c\uc77c\uba85\uc744 utf8\ub85c \uc124\uc815<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">set ftp:charset utf8; ftp\uc758 \ud30c\uc77c\uba85\uc744 utf8\ub85c \uc124\uc815<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">set net:timeout 60; \ud504\ub85c\ud1a0\ucf5c \ud0c0\uc784\uc544\uc6c3 (\ucd08\ub2e8\uc704\uac00 \uc544\ub2d8)<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">set net:reconnect-interval-base 5; \ud55c\ubc88 \uc811\uc18d \uc2e4\ud328 \ud6c4 5\ucd08\uac04 \uc270\ub2e4.<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">set net:max-retries 10; \uc7ac\uc811\uc18d \uc2dc\ub3c4 \ud69f\uc218<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">mirror \uc635\uc158:<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">-c, &nbsp; &nbsp; &nbsp;--continue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; continue a mirror job if possible<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">-e, &nbsp; &nbsp; &nbsp;--delete &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; delete files not present at remote site<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--delete-first &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; delete old files before transferring new ones<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--depth-first &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;descend &nbsp; into &nbsp;subdirectories &nbsp;before &nbsp;transferring<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; files<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--scan-all-first &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; scan all directories recursively before transferring<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; files<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">-s, &nbsp; &nbsp; &nbsp;--allow-suid &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set suid\/sgid bits according to remote site<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--allow-chown &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;try to set owner and group on files<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--ascii &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;use ascii mode transfers (implies --ignore-size)<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--ignore-time &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ignore time when deciding whether to download<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--ignore-size &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ignore size when deciding whether to download<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--only-missing &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; download only missing files<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--only-existing &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;download only files already existing at target<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">-n, &nbsp; &nbsp; &nbsp;--only-newer &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; download only newer files (-c won't work)<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--upload-older &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; upload even files older than remote ones<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--transfer-all &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; transfer &nbsp;all &nbsp;files, even seemingly the same at the<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; target site<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--no-empty-dirs &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;don't &nbsp; &nbsp;create &nbsp; &nbsp;empty &nbsp; &nbsp;directories &nbsp; &nbsp; (implies<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; --depth-first)<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">-r, &nbsp; &nbsp; &nbsp;--no-recursion &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; don't go to subdirectories<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--recursion=MODE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; go to subdirectories on a condition<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--no-symlinks &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;don't create symbolic links<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">-p, &nbsp; &nbsp; &nbsp;--no-perms &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; don't set file permissions<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--no-umask &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; don't apply umask to file modes<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">-R, &nbsp; &nbsp; &nbsp;--reverse &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;reverse mirror (put files)<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">-L, &nbsp; &nbsp; &nbsp;--dereference &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;download symbolic links as files<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--overwrite &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;overwrite plain files without removing them first<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--no-overwrite &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; remove &nbsp;and &nbsp;re-create &nbsp;plain files instead of over\u2010<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; writing<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">-N, &nbsp; &nbsp; &nbsp;--newer-than=SPEC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;download only files newer than specified time<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--older-than=SPEC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;download only files older than specified time<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--size-range=RANGE &nbsp; &nbsp; &nbsp; &nbsp; download only files with size in specified range<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">-P, &nbsp; &nbsp; &nbsp;--parallel[=N] &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; download N files in parallel<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--use-pget[-n=N] &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; use pget to transfer every single file<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--on-change=CMD &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;execute the command if anything has been changed<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--loop &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; repeat mirror until no changes found<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">-i RX, &nbsp; --include=RX &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; include matching files<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">-x RX, &nbsp; --exclude=RX &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exclude matching files<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">-I GP, &nbsp; --include-glob=GP &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;include matching files<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">-X GP, &nbsp; --exclude-glob=GP &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exclude matching files<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--include-rx-from=FILE<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--exclude-rx-from=FILE<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--include-glob-from=FILE<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--exclude-glob-from=FILE &nbsp; load include\/exclude patterns from the file, one per<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; line<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">-f FILE, --file=FILE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;mirror &nbsp; a &nbsp; single &nbsp;file &nbsp;or &nbsp;globbed &nbsp;group &nbsp;(e.g.<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \/path\/to\/*.txt)<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">-F DIR, &nbsp;--directory=DIR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;mirror a single directory &nbsp;or &nbsp;globbed &nbsp;group &nbsp;(e.g.<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \/path\/to\/dir*)<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">-O DIR, &nbsp;--target-directory=DIR &nbsp; &nbsp; target base path or URL<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">-v, &nbsp; &nbsp; &nbsp;--verbose[=level] &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;verbose operation<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--log=FILE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; write lftp commands being executed to FILE<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--script=FILE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;write lftp commands to FILE, but don't execute them<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--just-print, --dry-run &nbsp; &nbsp;same as --script=-<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--max-errors=N &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; stop after this number of errors<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--skip-noaccess &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;don't try to transfer files with no read access.<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--use-cache &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;use cached directory listings<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--Remove-source-files &nbsp; &nbsp; &nbsp;remove &nbsp;source &nbsp;files &nbsp;after transfer (use with cau\u2010<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tion)<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--Remove-source-dirs &nbsp; &nbsp; &nbsp; remove source files and directories &nbsp;after &nbsp;transfer<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (use &nbsp;with &nbsp;caution). &nbsp; Top &nbsp;level &nbsp;directory is not<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; removed if it's name ends with a slash.<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--Move &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; same as --Remove-source-dirs<\/span><\/p>\r\n<p><span style=\"font-family: \uad74\ub9bc\uccb4, &quot;Courier New&quot;, &quot;Lucida Console&quot;;\">-a &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;same as --allow-chown --allow-suid --no-umask<\/span><\/p>\r\n<p style=\"font-size: 12px;\"><a href=\"http:\/\/lftp.tech\/lftp-man.html\" target=\"_blank\" rel=\"noopener\"><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>man page :&nbsp;http:\/\/lftp.tech\/lftp-man.html \u25a0 sftp \uc811\uc18d \uc608 lftp -u &#8220;&lt;userid&gt;,&lt;password&gt;&#8221; -e &#8220;cache off; set sftp:charset utf8; set sftp:auto-confirm yes; set net:timeout 60; set net:reconnect-interval-base 5; set net:max-retries 10; mirror -e -v \/remote_dir \/local_dir; exit&#8221; sftp:\/\/ssh.mysite.com:22 \u25a0 ftp \uc811\uc18d \uc608 lftp -u &#8220;&lt;userid&gt;,&lt;password&gt;&#8221; -e &#8220;cache off; set ftp:charset utf8; set net:timeout 60; set net:reconnect-interval-base 5; set [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[15],"tags":[],"class_list":["post-750","post","type-post","status-publish","format-standard","hentry","category-computing_tools"],"_links":{"self":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/750","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=750"}],"version-history":[{"count":0,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/750\/revisions"}],"wp:attachment":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=750"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=750"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=750"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}