{"id":1173,"date":"2012-04-06T11:18:09","date_gmt":"2012-04-06T11:18:09","guid":{"rendered":"http:\/\/truelogic.org\/wordpress\/?p=1173"},"modified":"2012-04-06T11:18:09","modified_gmt":"2012-04-06T11:18:09","slug":"listing-files-by-update-date-in-svn-and-zipping-them","status":"publish","type":"post","link":"https:\/\/truelogic.org\/wordpress\/2012\/04\/06\/listing-files-by-update-date-in-svn-and-zipping-them\/","title":{"rendered":"Listing files by Update date in SVN and zipping them"},"content":{"rendered":"<p><a href=\"https:\/\/truelogic.org\/wordpress\/2012\/04\/06\/listing-files-by-update-date-in-svn-and-zipping-them\/zip\/\" rel=\"attachment wp-att-1176\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-1176\" title=\"zip\" src=\"https:\/\/truelogic.org\/wordpress\/wp-content\/uploads\/2012\/04\/zip.jpeg\" alt=\"\" width=\"225\" height=\"225\" srcset=\"https:\/\/truelogic.org\/wordpress\/wp-content\/uploads\/2012\/04\/zip.jpeg 225w, https:\/\/truelogic.org\/wordpress\/wp-content\/uploads\/2012\/04\/zip-150x150.jpg 150w\" sizes=\"auto, (max-width: 225px) 100vw, 225px\" \/><\/a><\/p>\n<p>How to get a list of all files changed from a specific date in the past. Secondly, how to zip them all up.<\/p>\n<p><strong>Step 1<\/strong><\/p>\n<p><span style=\"color: #0000ff;\">svn diff http:\/\/subversion-url &#8211;summarize -r {2012-03-01}:{2012-03-31} &gt; \/var\/log.txt<\/span><\/p>\n<p>What this does is list the files with full path changed between Mar 1 to Mar 21 and append all the filepaths into a file called log.txt<strong><\/strong><\/p>\n<p><strong>Step 2<\/strong><\/p>\n<p>c<span style=\"color: #0000ff;\">at \/var\/log.txt | while read a; do zip changes.zip $a; done<\/span><\/p>\n<p>Use piping to get each line from log.txt into variable a and pass the value of a into the zip command. Each filename from log.txt is added to the file changes.zip<\/p>\n<p><strong><br \/>\n<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>How to get a list of all files changed from a specific date in the past. Secondly, how to zip them all up. Step 1 <a class=\"mh-excerpt-more\" href=\"https:\/\/truelogic.org\/wordpress\/2012\/04\/06\/listing-files-by-update-date-in-svn-and-zipping-them\/\" title=\"Listing files by Update date in SVN and zipping them\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":1176,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,8,10,11],"tags":[],"class_list":["post-1173","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-freebsd","category-misc","category-programming","category-tutorials"],"_links":{"self":[{"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/posts\/1173","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/comments?post=1173"}],"version-history":[{"count":4,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/posts\/1173\/revisions"}],"predecessor-version":[{"id":1178,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/posts\/1173\/revisions\/1178"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/media\/1176"}],"wp:attachment":[{"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/media?parent=1173"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/categories?post=1173"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/tags?post=1173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}