<br />
<b>Deprecated</b>:  Creation of dynamic property wpdb::$categories is deprecated in <b>/home/garrens3/public_html/blog/wp-includes/wp-db.php</b> on line <b>760</b><br />
<br />
<b>Deprecated</b>:  Creation of dynamic property wpdb::$post2cat is deprecated in <b>/home/garrens3/public_html/blog/wp-includes/wp-db.php</b> on line <b>760</b><br />
<br />
<b>Deprecated</b>:  Creation of dynamic property wpdb::$link2cat is deprecated in <b>/home/garrens3/public_html/blog/wp-includes/wp-db.php</b> on line <b>760</b><br />
<br />
<b>Deprecated</b>:  Automatic conversion of false to array is deprecated in <b>/home/garrens3/public_html/blog/wp-content/plugins/loginizer/init.php</b> on line <b>250</b><br />
<br />
<b>Deprecated</b>:  Automatic conversion of false to array is deprecated in <b>/home/garrens3/public_html/blog/wp-content/plugins/loginizer/init.php</b> on line <b>265</b><br />
<br />
<b>Deprecated</b>:  Creation of dynamic property WP_Block_Type::$skip_inner_blocks is deprecated in <b>/home/garrens3/public_html/blog/wp-includes/class-wp-block-type.php</b> on line <b>391</b><br />
<br />
<b>Deprecated</b>:  Creation of dynamic property WP_Block_Type::$skip_inner_blocks is deprecated in <b>/home/garrens3/public_html/blog/wp-includes/class-wp-block-type.php</b> on line <b>391</b><br />
{"id":31,"date":"2014-10-29T17:52:29","date_gmt":"2014-10-29T17:52:29","guid":{"rendered":"http:\/\/garrens.com\/blog\/?p=31"},"modified":"2014-10-29T17:52:29","modified_gmt":"2014-10-29T17:52:29","slug":"use-regex-to-select-only-certain-files-via-s3cmd","status":"publish","type":"post","link":"https:\/\/garrens.com\/blog\/2014\/10\/29\/use-regex-to-select-only-certain-files-via-s3cmd\/","title":{"rendered":"Use regex to select only certain files via s3cmd"},"content":{"rendered":"<p>Recently I wanted to download only a small subset of thousands of files from an S3 &#8220;folder.&#8221; <\/p>\n<p>The s3cmd docs were lacking with regard to how to select only a subset. <\/p>\n<p>This is how I downloaded only log files from 11PM:<br \/>\n<code>s3cmd get --recursive --rinclude \".*2014-10-28-23.*\" --rexclude \".*\" s3:\/\/my-bucket-of-logs\/folder\/2014-10-28\/<\/code><\/p>\n<p>Note that I used both rinclude and rexclude. If you only use rinclude (or include), it won&#8217;t restrict only to what you specified, but it will ensure what you specified is taken. So you have to exclude everything first (<code>--rexclude \".*\"<\/code>), THEN include only what you want (<code>--rinclude \".*2014-10-28-23.*\"<\/code>)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently I wanted to download only a small subset of thousands of files from an S3 &#8220;folder.&#8221; The s3cmd docs were lacking with regard to how to select only a subset. This is how I downloaded only log files from 11PM: s3cmd get &#8211;recursive &#8211;rinclude &#8220;.*2014-10-28-23.*&#8221; &#8211;rexclude &#8220;.*&#8221; s3:\/\/my-bucket-of-logs\/folder\/2014-10-28\/ Note that I used both rinclude&hellip; <a href=\"https:\/\/garrens.com\/blog\/2014\/10\/29\/use-regex-to-select-only-certain-files-via-s3cmd\/\" title=\"Read More\" class=\"read-more\">Continue reading<span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/garrens.com\/blog\/wp-json\/wp\/v2\/posts\/31"}],"collection":[{"href":"https:\/\/garrens.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/garrens.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/garrens.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/garrens.com\/blog\/wp-json\/wp\/v2\/comments?post=31"}],"version-history":[{"count":2,"href":"https:\/\/garrens.com\/blog\/wp-json\/wp\/v2\/posts\/31\/revisions"}],"predecessor-version":[{"id":97,"href":"https:\/\/garrens.com\/blog\/wp-json\/wp\/v2\/posts\/31\/revisions\/97"}],"wp:attachment":[{"href":"https:\/\/garrens.com\/blog\/wp-json\/wp\/v2\/media?parent=31"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/garrens.com\/blog\/wp-json\/wp\/v2\/categories?post=31"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/garrens.com\/blog\/wp-json\/wp\/v2\/tags?post=31"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}