{"id":343,"date":"2011-10-18T16:47:38","date_gmt":"2011-10-18T14:47:38","guid":{"rendered":"http:\/\/webpiraten.de\/?p=343"},"modified":"2012-01-22T20:26:51","modified_gmt":"2012-01-22T19:26:51","slug":"ant-task-mysqldump-mit-gzip","status":"publish","type":"post","link":"https:\/\/webpiraten.de\/index.php\/mysql\/ant-task-mysqldump-mit-gzip\/","title":{"rendered":"ant task &#8211; mysqldump mit gzip"},"content":{"rendered":"<p>um mit ant einen gezipten mysqldump zu erstellen, gehe wie folgt vor<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n    &lt;target name=&quot;tstamp&quot; description=&quot;create timestamp for further usage&quot;&gt;\r\n        &lt;echo message=&quot;create timestamp for further usage&quot;\/&gt;\r\n        &lt;tstamp\/&gt;\r\n    &lt;\/target&gt;\r\n\r\n    &lt;target name=&quot;mkdir&quot; description=&quot;create backup directory&quot;&gt;\r\n        &lt;echo message=&quot;create backup directory&quot;\/&gt;\r\n        &lt;mkdir dir=&quot;${backups}&quot;\/&gt;\r\n    &lt;\/target&gt;\r\n\r\n    &lt;target name=&quot;dump&quot; description=&quot;create db dump and gzip it - depends on tstamp, mkdir&quot; depends=&quot;tstamp, mkdir&quot;&gt;\r\n        &lt;echo message=&quot;create db dump and gzip it&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;mysqldump ${db} -u${db_user} -p${db_pass} | gzip &gt; ${backups}\/${db}_${DSTAMP}_${TSTAMP}.sql.gz&quot;'\/&gt;\r\n        &lt;\/exec&gt;\r\n    &lt;\/target&gt;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>um mit ant einen gezipten mysqldump zu erstellen, gehe wie folgt vor &lt;target name=&quot;tstamp&quot; description=&quot;create timestamp for further usage&quot;&gt; &lt;echo message=&quot;create timestamp for further usage&quot;\/&gt; &lt;tstamp\/&gt; &lt;\/target&gt; &lt;target name=&quot;mkdir&quot; description=&quot;create backup directory&quot;&gt; &lt;echo message=&quot;create backup directory&quot;\/&gt; &lt;mkdir dir=&quot;${backups}&quot;\/&gt; &lt;\/target&gt; &lt;target name=&quot;dump&quot; description=&quot;create db dump and gzip it &#8211; depends on tstamp, mkdir&quot; depends=&quot;tstamp, mkdir&quot;&gt; &lt;echo [&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,56,77,75,11,54,76,79],"tags":[647,206,157,271,97,193,207,285],"class_list":["post-343","post","type-post","status-publish","format-standard","hentry","category-ant","category-apache","category-deployment","category-linux","category-mysql","category-server","category-shell","category-xml","tag-ant","tag-build","tag-gzip","tag-mysqldump","tag-pipe","tag-target","tag-task","tag-zip"],"_links":{"self":[{"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/posts\/343","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=343"}],"version-history":[{"count":2,"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/posts\/343\/revisions"}],"predecessor-version":[{"id":352,"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/posts\/343\/revisions\/352"}],"wp:attachment":[{"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/media?parent=343"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/categories?post=343"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/tags?post=343"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}