<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
<channel>
  <title>Linux Format forums</title>
  <link>http://www.linuxformat.com/forums/index.php</link>
  <description>Help, discussion, magazine feedback and more</description>
  <language>english</language>
  <copyright>(c) Copyright Wed May 22, 2013 7:15 pm by Linux Format forums</copyright>
  <managingEditor>webmaster@linuxformat.com</managingEditor>
  <webMaster>webmaster@linuxformat.com</webMaster>
  <pubDate>Wed May 22, 2013 7:15 pm</pubDate>
  <lastBuildDate>Wed May 22, 2013 7:15 pm</lastBuildDate>
  <docs>http://backend.userland.com/rss</docs>
  <generator>phpBB2 RSS Syndication Mod by Lucas</generator>
  <ttl>1</ttl>

  <image>
    <title>Linux Format forums</title>
    <url></url>
    <link>http://www.linuxformat.com/forums/</link>
    <description>Help, discussion, magazine feedback and more</description>
  </image>

                                      <item>
                                        <title>RE: shell script backup system</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=2483#2483</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=5'&gt;nelz&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue May 31, 2005 7:56 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Try this&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&lt;br /&gt;
find /home/office/ -newer /home/backup/office-backup-$&amp;#40;date -I -d yesterday&amp;#41;.tgz \! -type d | xargs tar -zcvf /home/malcolm/office-$&amp;#40;date -I&amp;#41;.tgz&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
$() is more readable than backticks, once you switch to those, you see you left them out of the archive name.&lt;br /&gt;
&lt;br /&gt;
This will work provided none of your filenames include spaces, or any other shell reserved characters. xargs falls over on those. A more robust solution would be&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&lt;br /&gt;
find /home/office/ -newer /home/backup/office-backup-$date -I -d yesterday&amp;#41;.tgz \! -type d -exec tar -cf /home/malcolm/office-$&amp;#40;date -I&amp;#41;.tar &amp;quot;&amp;#123;&amp;#125;&amp;quot; \;&lt;br /&gt;
gzip /home/malcolm/office-$&amp;#40;date -I&amp;#41;.tar&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=2483#2483</comments>
                                        <author>nelz</author>
                                        <pubDate>Tue May 31, 2005 7:56 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=2483#2483</guid>
                                      </item>
                                      <item>
                                        <title>shell script backup system</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=2476#2476</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=1272'&gt;mmorenopc&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue May 31, 2005 5:49 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Hi all!!, I have being trying an script I found in a magazine to put in place a simple way to incrementaly backup files in a directory, i have tryied all sort of combination but the error persist, is something with xargs but i can see it&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
the script is:&lt;br /&gt;
&lt;br /&gt;
find /home/office/ -newer /home/backup/office-backup-`date -I -d yesterday`.tgz \! -type d | xargs tar -zcvf /home/malcolm/office-date -I.tgz&lt;br /&gt;
&lt;br /&gt;
And for more than i check what coung be wrong I can't see it and i get this error message&lt;br /&gt;
&lt;br /&gt;
Any idea what migh be wrong ?&lt;br /&gt;
&lt;br /&gt;
xargs: unmatched single quote&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanks a lot a the force be with you !!</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=2476#2476</comments>
                                        <author>mmorenopc</author>
                                        <pubDate>Tue May 31, 2005 5:49 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=2476#2476</guid>
                                      </item></channel></rss>