{"id":279,"date":"2010-12-22T10:36:54","date_gmt":"2010-12-22T09:36:54","guid":{"rendered":"http:\/\/webpiraten.de\/?p=279"},"modified":"2010-12-22T10:37:08","modified_gmt":"2010-12-22T09:37:08","slug":"alte-dateien-mit-ant-task-loschen","status":"publish","type":"post","link":"https:\/\/webpiraten.de\/index.php\/server\/alte-dateien-mit-ant-task-loschen\/","title":{"rendered":"alte dateien mit ant task l\u00f6schen"},"content":{"rendered":"<p>um mit ant alte dateien per find\/pipe\/xargs zu entfernen, kann man den ant exec befehl verwenden.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n    &lt;target name=&quot;dump_cleanup&quot; description=&quot;dump cleanup - remove old backup db dumps&quot;&gt;\r\n        &lt;echo message=&quot;cleanup backup dir - remove old db dumps&quot;\/&gt;\r\n        &lt;exec executable=&quot;bash&quot; dir=&quot;${backups}&quot;&gt;\r\n            &lt;arg value=&quot;-c&quot;\/&gt;\r\n            &lt;arg line='&quot;find -P . -maxdepth 1 -type f -ctime +4 -print0 | xargs -0 rm -f&quot;'\/&gt;\r\n        &lt;\/exec&gt;\r\n    &lt;\/target&gt;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>um mit ant alte dateien per find\/pipe\/xargs zu entfernen, kann man den ant exec befehl verwenden. &lt;target name=&quot;dump_cleanup&quot; description=&quot;dump cleanup &#8211; remove old backup db dumps&quot;&gt; &lt;echo message=&quot;cleanup backup dir &#8211; remove old db dumps&quot;\/&gt; &lt;exec executable=&quot;bash&quot; dir=&quot;${backups}&quot;&gt; &lt;arg value=&quot;-c&quot;\/&gt; &lt;arg line=&#8217;&quot;find -P . -maxdepth 1 -type f -ctime +4 -print0 | xargs -0 rm [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[78,77,75,54,76],"tags":[647,206,208,96,97,209,207,91],"class_list":["post-279","post","type-post","status-publish","format-standard","hentry","category-ant","category-deployment","category-linux","category-server","category-shell","tag-ant","tag-build","tag-exec","tag-find","tag-pipe","tag-remove","tag-task","tag-xargs"],"_links":{"self":[{"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/posts\/279","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/comments?post=279"}],"version-history":[{"count":2,"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/posts\/279\/revisions"}],"predecessor-version":[{"id":281,"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/posts\/279\/revisions\/281"}],"wp:attachment":[{"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/media?parent=279"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/categories?post=279"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/tags?post=279"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}