{"id":166,"date":"2013-06-28T22:29:49","date_gmt":"2013-06-28T19:29:49","guid":{"rendered":"http:\/\/meekconsulting.com\/?p=166"},"modified":"2013-06-28T22:31:01","modified_gmt":"2013-06-28T19:31:01","slug":"using-find-to-get-newer-files-into-single-tar","status":"publish","type":"post","link":"https:\/\/meekconsulting.com\/?p=166","title":{"rendered":"using find to get newer files into single tar"},"content":{"rendered":"<p>Use this:<\/p>\n<blockquote><p>find . -type f\u00a0 -newer \/last_time_file -print0 | tar -czvf backup.tar.gz -T \u2013 \u2013null<\/p><\/blockquote>\n<p>It will:<\/p>\n<p>deal with files with spaces, newlines, leading dashes, and other funniness<br \/>\nhandle an unlimited number of files<br \/>\nwon\u2019t repeatedly overwrite your backup.tar.gz like using tar -c with xargs will do when you have a large number of files<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Use this: find . -type f\u00a0 -newer \/last_time_file -print0 | tar -czvf backup.tar.gz -T \u2013 \u2013null It will: deal with files with spaces, newlines, leading dashes, and other funniness handle an unlimited number of files won\u2019t repeatedly overwrite your backup.tar.gz &hellip; <a href=\"https:\/\/meekconsulting.com\/?p=166\">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:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/posts\/166"}],"collection":[{"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=166"}],"version-history":[{"count":1,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/posts\/166\/revisions"}],"predecessor-version":[{"id":168,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/posts\/166\/revisions\/168"}],"wp:attachment":[{"href":"https:\/\/meekconsulting.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=166"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=166"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=166"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}