<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: find and tar in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/find-and-tar/m-p/3966734#M27535</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;try &lt;BR /&gt;# touch -t 0703200000 starttimefile&lt;BR /&gt;# touch -t 0703220000 stoptimefile&lt;BR /&gt;&lt;BR /&gt;# tar cvf arc.tar $(find /path -type f \( -newer starttimefile -a ! -newer stoptimefile \) )&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#if you have lots of files you may try:&lt;BR /&gt;&lt;BR /&gt;#find /path -type f \( -newer starttimefile -a ! -newer stoptimefile \)  | xargs tar rvf arc.tar &lt;BR /&gt;&lt;BR /&gt;rgds&lt;BR /&gt;HGH&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 22 Mar 2007 05:27:28 GMT</pubDate>
    <dc:creator>Hemmetter</dc:creator>
    <dc:date>2007-03-22T05:27:28Z</dc:date>
    <item>
      <title>find and tar</title>
      <link>https://community.hpe.com/t5/operating-system-linux/find-and-tar/m-p/3966732#M27533</link>
      <description>How can i use find with tar command. and in case i want to tar files for one particular date how can i do that. as the file names are being different.</description>
      <pubDate>Thu, 22 Mar 2007 04:43:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/find-and-tar/m-p/3966732#M27533</guid>
      <dc:creator>Om prakash_1</dc:creator>
      <dc:date>2007-03-22T04:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: find and tar</title>
      <link>https://community.hpe.com/t5/operating-system-linux/find-and-tar/m-p/3966733#M27534</link>
      <description>You can use something like this:&lt;BR /&gt;&lt;BR /&gt;tar cvf /dev/st0 $(find /path -mtime +30)&lt;BR /&gt;&lt;BR /&gt;This will find the files older than 30 days and send it to tape. You can play with the find command as you want.</description>
      <pubDate>Thu, 22 Mar 2007 05:27:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/find-and-tar/m-p/3966733#M27534</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2007-03-22T05:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: find and tar</title>
      <link>https://community.hpe.com/t5/operating-system-linux/find-and-tar/m-p/3966734#M27535</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;try &lt;BR /&gt;# touch -t 0703200000 starttimefile&lt;BR /&gt;# touch -t 0703220000 stoptimefile&lt;BR /&gt;&lt;BR /&gt;# tar cvf arc.tar $(find /path -type f \( -newer starttimefile -a ! -newer stoptimefile \) )&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#if you have lots of files you may try:&lt;BR /&gt;&lt;BR /&gt;#find /path -type f \( -newer starttimefile -a ! -newer stoptimefile \)  | xargs tar rvf arc.tar &lt;BR /&gt;&lt;BR /&gt;rgds&lt;BR /&gt;HGH&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Mar 2007 05:27:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/find-and-tar/m-p/3966734#M27535</guid>
      <dc:creator>Hemmetter</dc:creator>
      <dc:date>2007-03-22T05:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: find and tar</title>
      <link>https://community.hpe.com/t5/operating-system-linux/find-and-tar/m-p/3966735#M27536</link>
      <description>when i use&lt;BR /&gt; find tmp -type f -exec grep "tmp" {}\; &lt;BR /&gt;&lt;BR /&gt;i get the this error.&lt;BR /&gt;&lt;BR /&gt;find: missing argument to `-exec'</description>
      <pubDate>Thu, 22 Mar 2007 05:57:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/find-and-tar/m-p/3966735#M27536</guid>
      <dc:creator>Om prakash_1</dc:creator>
      <dc:date>2007-03-22T05:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: find and tar</title>
      <link>https://community.hpe.com/t5/operating-system-linux/find-and-tar/m-p/3966736#M27537</link>
      <description>well this works greatly... but i was wondering how can i specify a date for eg. if i want to archive all the files which were created on say Feb 23. like using mtime or something like that.</description>
      <pubDate>Thu, 22 Mar 2007 06:00:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/find-and-tar/m-p/3966736#M27537</guid>
      <dc:creator>Om prakash_1</dc:creator>
      <dc:date>2007-03-22T06:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: find and tar</title>
      <link>https://community.hpe.com/t5/operating-system-linux/find-and-tar/m-p/3966737#M27538</link>
      <description>Yes, as described in the  Hemmetter solution, you can create a file with a "baseline date" with the touch command, and use that file as reference for your search.</description>
      <pubDate>Thu, 22 Mar 2007 06:04:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/find-and-tar/m-p/3966737#M27538</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2007-03-22T06:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: find and tar</title>
      <link>https://community.hpe.com/t5/operating-system-linux/find-and-tar/m-p/3966738#M27539</link>
      <description>The method I'd use (instead of xargs) is to:&lt;BR /&gt;&lt;BR /&gt;find . &lt;FLAGS&gt; | tar Tcvf - file.tar&lt;BR /&gt;&lt;BR /&gt;The 'T' coupled with '-' takes the file-list from STDIN.  This allows a more dynamic method (and not limited to command-line size) of creating an arcive.&lt;BR /&gt;&lt;BR /&gt;That, or use 'cpio'.. ;)&lt;/FLAGS&gt;</description>
      <pubDate>Thu, 22 Mar 2007 18:40:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/find-and-tar/m-p/3966738#M27539</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2007-03-22T18:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: find and tar</title>
      <link>https://community.hpe.com/t5/operating-system-linux/find-and-tar/m-p/3966739#M27540</link>
      <description>You should have a look at the pax command.&lt;BR /&gt;It can read and write tar format.&lt;BR /&gt;But it is also very good at filtering which files will be written based on file names and modification times.&lt;BR /&gt;&lt;BR /&gt;pax -w -T 02230000,02240000 /tmp &amp;gt; tmp.tar</description>
      <pubDate>Fri, 23 Mar 2007 18:16:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/find-and-tar/m-p/3966739#M27540</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2007-03-23T18:16:22Z</dc:date>
    </item>
  </channel>
</rss>

