<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1039662" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1039662</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/gz-help-needed#comment-1224505</link>
    <description> &lt;p&gt;I got it figured out and working now. The source file is ok. I extracted the source from the tgz and did a file compare and it&#039;s a perfect copy of the source.&lt;/p&gt;
&lt;p&gt;Thanks for your help...&lt;/p&gt;
 </description>
     <pubDate>Sun, 23 Sep 2007 14:45:29 +0000</pubDate>
 <dc:creator>frank727</dc:creator>
 <guid isPermaLink="false">comment 1224505 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/gz-help-needed#comment-1224503</link>
    <description> &lt;p&gt;I think that did it. I got the .tgz file created and it&#039;s size seems about right at 631kb.  To check it, how do I un tgz it back into it&#039;s .sql state?&lt;/p&gt;
&lt;p&gt;The .sql file changed size too: went from 4800kb to 622kb - I thought the source file would not be changed?&lt;/p&gt;
 </description>
     <pubDate>Sun, 23 Sep 2007 14:03:19 +0000</pubDate>
 <dc:creator>frank727</dc:creator>
 <guid isPermaLink="false">comment 1224503 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/gz-help-needed#comment-1224500</link>
    <description> &lt;p&gt;The files are reversed.  You specify the compressed file first.  Sorry, that was my fault.&lt;/p&gt;
&lt;p&gt;SQL files do actually compress quite a bit because have the the file has phrases like &quot;INSERT INTO table_name&quot;, etc.&lt;/p&gt;
 </description>
     <pubDate>Sun, 23 Sep 2007 13:30:28 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1224500 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/gz-help-needed#comment-1224499</link>
    <description> &lt;p&gt;I put the full path in&lt;/p&gt;
&lt;p&gt;exec(&quot;tar -czvf /var/www/backup/wx.sql /var/www/backup/wx.sql.tgz&quot;);&lt;/p&gt;
&lt;p&gt;but it still doesn&#039;t work. The wx.sql files is about 4800kb and after the statement is run their is only the wx.sql file (no .tgz file) and it&#039;s about 45k. I looked inside the file and it&#039;s unreadable so it must be tgz format but surely it can&#039;t compress a 4800kb file down to 45kb? But there is still no .tgz file.&lt;/p&gt;
 </description>
     <pubDate>Sun, 23 Sep 2007 05:30:31 +0000</pubDate>
 <dc:creator>frank727</dc:creator>
 <guid isPermaLink="false">comment 1224499 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/gz-help-needed#comment-1224498</link>
    <description> &lt;p&gt;I&#039;m running it in a PHP script. I&#039;ll give your syntax a shot and see how it works.&lt;/p&gt;
&lt;p&gt;Thanks...&lt;/p&gt;
 </description>
     <pubDate>Sun, 23 Sep 2007 05:03:35 +0000</pubDate>
 <dc:creator>frank727</dc:creator>
 <guid isPermaLink="false">comment 1224498 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/gz-help-needed#comment-1224489</link>
    <description> &lt;p&gt;Since you are using the exec() function, I&#039;m assuming that you are running that in PHP.  If you are just running it in a shell, you don&#039;t need the exec() function.&lt;/p&gt;
&lt;p&gt;The basic way to run the command would be...&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;tar &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;czvf file&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;sql file&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;sql&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;tgz&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Change the file name accordingly, and stick it into the exec() function if needed.  Also, if you are running the command in a different directory than the files, be sure to provide the relative path along with the file.&lt;/p&gt;
 </description>
     <pubDate>Sun, 23 Sep 2007 00:29:52 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1224489 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
