{"id":216,"date":"2013-01-04T17:02:25","date_gmt":"2013-01-04T15:02:25","guid":{"rendered":"http:\/\/evcz.tk\/blog\/?p=216"},"modified":"2013-01-04T17:03:45","modified_gmt":"2013-01-04T15:03:45","slug":"wget-ftp-download-specific-directory-content-no-recursion","status":"publish","type":"post","link":"https:\/\/evcz.tk\/blog\/2013\/01\/04\/wget-ftp-download-specific-directory-content-no-recursion\/","title":{"rendered":"wget ftp download specific directory content &#8211; no recursion"},"content":{"rendered":"<p>This one command allows you to download the content of a directory to a local directory without doing recuirsive searches<\/p>\n<pre lang=\"bash\">wget -np -N --cut-dirs=1 -A .dem ftp:\/\/user:password@host.tld\/tf2\/orangebox\/tf\/*<\/pre>\n<p>specifically this one downloads all the &#8220;.dem&#8221; (-A .dem) (team fortress demo files) located into the remote &#8220;\/tf2\/orangebox\/tf\/&#8221; directory.<br \/>\nFiles are saved into the current directory (&#8211;cut-dirs=1)<\/p>\n<p>Additionally it makes use of timestamping (-N) in order to not download already existing files when doing a subsequent run.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This one command allows you to download the content of a directory to a local directory without doing recuirsive searches wget -np -N &#8211;cut-dirs=1 -A .dem ftp:\/\/user:password@host.tld\/tf2\/orangebox\/tf\/* specifically this one downloads all the &#8220;.dem&#8221; (-A .dem) (team fortress demo files) located into the remote &#8220;\/tf2\/orangebox\/tf\/&#8221; directory. Files are saved into the current directory (&#8211;cut-dirs=1) Additionally &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/evcz.tk\/blog\/2013\/01\/04\/wget-ftp-download-specific-directory-content-no-recursion\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;wget ftp download specific directory content &#8211; no recursion&#8221;<\/span><\/a><\/p>\n","protected":false},"author":45,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[5],"class_list":["post-216","post","type-post","status-publish","format-standard","hentry","category-snippets","tag-centos"],"_links":{"self":[{"href":"https:\/\/evcz.tk\/blog\/wp-json\/wp\/v2\/posts\/216","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/evcz.tk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/evcz.tk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/evcz.tk\/blog\/wp-json\/wp\/v2\/users\/45"}],"replies":[{"embeddable":true,"href":"https:\/\/evcz.tk\/blog\/wp-json\/wp\/v2\/comments?post=216"}],"version-history":[{"count":3,"href":"https:\/\/evcz.tk\/blog\/wp-json\/wp\/v2\/posts\/216\/revisions"}],"predecessor-version":[{"id":219,"href":"https:\/\/evcz.tk\/blog\/wp-json\/wp\/v2\/posts\/216\/revisions\/219"}],"wp:attachment":[{"href":"https:\/\/evcz.tk\/blog\/wp-json\/wp\/v2\/media?parent=216"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/evcz.tk\/blog\/wp-json\/wp\/v2\/categories?post=216"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/evcz.tk\/blog\/wp-json\/wp\/v2\/tags?post=216"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}