{"id":23,"date":"2013-09-18T16:57:00","date_gmt":"2013-09-18T16:57:00","guid":{"rendered":""},"modified":"2016-02-25T18:09:02","modified_gmt":"2016-02-25T18:09:02","slug":"how-to-get-a-directory-recursively-with-lftp","status":"publish","type":"post","link":"https:\/\/www.root42.de\/blog\/?p=23","title":{"rendered":"How to get a directory recursively with lftp"},"content":{"rendered":"<p>Using the command <span style=\"font-family: Courier New, Courier, monospace;\">mget<\/span>, you can fetch files with the program <span style=\"font-family: Courier New, Courier, monospace;\"><a href=\"http:\/\/lftp.yar.ru\/\">lftp<\/a><\/span>. With <span style=\"font-family: Courier New, Courier, monospace;\">mget -c<\/span> you can continue an aborted download. But how do you download a directory recursively? No, <span style=\"font-family: Courier New, Courier, monospace;\">mget -c -r<\/span> does not work.<\/p>\n<p>It is so <a href=\"http:\/\/bethesignal.org\/blog\/2008\/12\/04\/recursive-get-with-lftp\/\">simple<\/a>:<\/p>\n<p><span style=\"font-family: Courier New, Courier, monospace;\">mirror <i>somedirectory<\/i><\/span><\/p>\n<p>Don&#8217;t forget to <span style=\"font-family: Courier New, Courier, monospace;\">lcd<\/span> into your download directory before.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Using the command mget, you can fetch files with the program lftp. With mget -c you can continue an aborted download. But how do you download a directory recursively? No, mget -c -r does not work. It is so simple: mirror somedirectory Don&#8217;t forget to lcd into your download directory before.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2,24,10],"tags":[],"_links":{"self":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/23"}],"collection":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=23"}],"version-history":[{"count":1,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/23\/revisions"}],"predecessor-version":[{"id":207,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/23\/revisions\/207"}],"wp:attachment":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=23"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=23"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=23"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}