<?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: File archiving tar  find for files that are current in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/file-archiving-tar-find-for-files-that-are-current/m-p/3190244#M164557</link>
    <description>Michael,&lt;BR /&gt;&lt;BR /&gt;Loosely translated, it means that -mtime +1 will match files created between midnight yesterday and midnight the day before.  James was looking for a solution that would identify only the files created within the last 24 hours: from 7:00 AM this morning to 7:00 AM yesterday morning.&lt;BR /&gt;&lt;BR /&gt;Hope that helps!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
    <pubDate>Thu, 12 Feb 2004 11:25:23 GMT</pubDate>
    <dc:creator>Pete Randall</dc:creator>
    <dc:date>2004-02-12T11:25:23Z</dc:date>
    <item>
      <title>File archiving tar  find for files that are current</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-archiving-tar-find-for-files-that-are-current/m-p/3190233#M164546</link>
      <description>Is there a way that I can use a combination of sh commands to archive files that were created less than 24 hours ago.  I have a bunch of indexs that are updated using networker(I have 60 days worth) and I would like to archive the current ones after the nightly backup.  The whole directly is 18gig and I would like once in a while just to do the current ones which would only take a few minutes instead of 4 hours.  Using the find command looks like it uses the 24 hour break and these indexs are created around 2:30 AM and I would back them up around 7AM each morning.</description>
      <pubDate>Thu, 12 Feb 2004 08:24:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-archiving-tar-find-for-files-that-are-current/m-p/3190233#M164546</guid>
      <dc:creator>Belinda Dermody</dc:creator>
      <dc:date>2004-02-12T08:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: File archiving tar  find for files that are current</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-archiving-tar-find-for-files-that-are-current/m-p/3190234#M164547</link>
      <description>James,&lt;BR /&gt;&lt;BR /&gt;You can use the touch command to create a reference file with a specifed date and time.  Then you can use find with -newer option to find the files more recent than the reference file.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 12 Feb 2004 08:27:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-archiving-tar-find-for-files-that-are-current/m-p/3190234#M164547</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2004-02-12T08:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: File archiving tar  find for files that are current</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-archiving-tar-find-for-files-that-are-current/m-p/3190235#M164548</link>
      <description>Prepare a cron job that will create a file at 02:30AM. Then you can use find command with -newer option to get the list of the files that are created after that.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Feb 2004 08:36:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-archiving-tar-find-for-files-that-are-current/m-p/3190235#M164548</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2004-02-12T08:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: File archiving tar  find for files that are current</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-archiving-tar-find-for-files-that-are-current/m-p/3190236#M164549</link>
      <description>Pete thanks for you response, I tried it but here is my results.  Although I touched a file named refffile with 1 minute past midnight, the find command comes back with all the files.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;root     other          0 Feb 12 00:01 reffile&lt;BR /&gt;cuba2:/nsr/index&amp;gt; find . -newer reffile -exec ls -l {} \; |more&lt;BR /&gt;total 0&lt;BR /&gt;drwxr-xr-x   3 root     other         96 Mar 13  2001 abaco&lt;BR /&gt;drwxr-xr-x   3 root     root          96 Feb 28  2003 disko&lt;BR /&gt;drwxr-xr-x   3 root     root          96 Jan 31  2002 duke&lt;BR /&gt;drwx------   3 root     root          96 Feb 12 06:41 everest&lt;BR /&gt;drwxr-xr-x   3 root     other         96 Oct  8  2001 folly&lt;BR /&gt;ns.com&lt;BR /&gt;drwxr-xr-x   3 root     root          96 Mar 13  2001 java&lt;BR /&gt;drwxr-xr-x   5 root     other         96 Mar 13  2001 zurich&lt;BR /&gt;total 16568&lt;BR /&gt;-r--r--r--   1 root     other        236 Feb  5 01:02 4021dc68.k0&lt;BR /&gt;-r--r--r--   1 root     other        192 Feb  5 01:02 4021dc68.k1&lt;BR /&gt;-r--r--r--   1 root     other       3660 Feb  5 01:02 4021dc68.rec&lt;BR /&gt;-r--r--r--   1 root     other       1148 Feb  5 01:35 4021dc73.k0&lt;BR /&gt;-r--r--r--   1 root     other        828 Feb  5 01:35 4021dc73.k1&lt;BR /&gt;-r--r--r--   1 root     other      17344 Feb  5 01:35 4021dc73.rec&lt;BR /&gt;-r--r--r--   1 root     other       1004 Feb  5 02:38 4021e44f.k0&lt;BR /&gt;-r--r--r--   1 root     other        768 Feb  5 02:38 4021e44f.k1&lt;BR /&gt;-r--r--r--   1 root     other      10784 Feb  5 02:38 4021e44f.rec&lt;BR /&gt;-r--------   1 root     other        204 Feb  5 02:05 4021eb3b.k0&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Feb 2004 08:37:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-archiving-tar-find-for-files-that-are-current/m-p/3190236#M164549</guid>
      <dc:creator>Belinda Dermody</dc:creator>
      <dc:date>2004-02-12T08:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: File archiving tar  find for files that are current</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-archiving-tar-find-for-files-that-are-current/m-p/3190237#M164550</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;find . -newer reffile -type f -exec ls -l {} \; |more&lt;BR /&gt;&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Thu, 12 Feb 2004 08:41:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-archiving-tar-find-for-files-that-are-current/m-p/3190237#M164550</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2004-02-12T08:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: File archiving tar  find for files that are current</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-archiving-tar-find-for-files-that-are-current/m-p/3190238#M164551</link>
      <description>James,&lt;BR /&gt;&lt;BR /&gt;I tried it as well and noticed some inconsistent results unless I restricted it to just files with -type f (as Robert-Jan suggested).  Try that and see what you get!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 12 Feb 2004 08:51:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-archiving-tar-find-for-files-that-are-current/m-p/3190238#M164551</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2004-02-12T08:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: File archiving tar  find for files that are current</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-archiving-tar-find-for-files-that-are-current/m-p/3190239#M164552</link>
      <description>You have to be careful with find and ls.  If the result of the find command is a *directory* then you will do an 'ls -l dirname' which will list all files in that directory which is not necessarily what you want.&lt;BR /&gt;&lt;BR /&gt;A couple of ways around this are: 1) use the '-type f' argument to find to only look for files. 2) when doing the ls use 'ls -ld' to restrict the ls to just showing the dirname and not the contents of the directory.</description>
      <pubDate>Thu, 12 Feb 2004 09:16:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-archiving-tar-find-for-files-that-are-current/m-p/3190239#M164552</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2004-02-12T09:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: File archiving tar  find for files that are current</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-archiving-tar-find-for-files-that-are-current/m-p/3190240#M164553</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;what about:&lt;BR /&gt;find /directory -mtime -1 -print&lt;BR /&gt;?&lt;BR /&gt;&lt;BR /&gt;Michael&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Feb 2004 09:22:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-archiving-tar-find-for-files-that-are-current/m-p/3190240#M164553</guid>
      <dc:creator>Michael Schulte zur Sur</dc:creator>
      <dc:date>2004-02-12T09:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: File archiving tar  find for files that are current</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-archiving-tar-find-for-files-that-are-current/m-p/3190241#M164554</link>
      <description>Oops,&lt;BR /&gt;&lt;BR /&gt;should be:&lt;BR /&gt;find /directory -mtime -1 -type f -print&lt;BR /&gt;&lt;BR /&gt;Michael&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Feb 2004 09:23:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-archiving-tar-find-for-files-that-are-current/m-p/3190241#M164554</guid>
      <dc:creator>Michael Schulte zur Sur</dc:creator>
      <dc:date>2004-02-12T09:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: File archiving tar  find for files that are current</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-archiving-tar-find-for-files-that-are-current/m-p/3190242#M164555</link>
      <description>Ahhh, but Michael,  that's the problem as originally described:&lt;BR /&gt;&lt;BR /&gt;"the find command looks like it uses the 24 hour break"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 12 Feb 2004 09:26:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-archiving-tar-find-for-files-that-are-current/m-p/3190242#M164555</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2004-02-12T09:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: File archiving tar  find for files that are current</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-archiving-tar-find-for-files-that-are-current/m-p/3190243#M164556</link>
      <description>Hi Pete,&lt;BR /&gt;&lt;BR /&gt;"the find command looks like it uses the 24 hour break"&lt;BR /&gt;&lt;BR /&gt;I am sorry, but this eludes my English. ;-)&lt;BR /&gt;You forget, me German! ;-))&lt;BR /&gt;&lt;BR /&gt;What does it mean?&lt;BR /&gt;&lt;BR /&gt;Michael&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Feb 2004 11:09:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-archiving-tar-find-for-files-that-are-current/m-p/3190243#M164556</guid>
      <dc:creator>Michael Schulte zur Sur</dc:creator>
      <dc:date>2004-02-12T11:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: File archiving tar  find for files that are current</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-archiving-tar-find-for-files-that-are-current/m-p/3190244#M164557</link>
      <description>Michael,&lt;BR /&gt;&lt;BR /&gt;Loosely translated, it means that -mtime +1 will match files created between midnight yesterday and midnight the day before.  James was looking for a solution that would identify only the files created within the last 24 hours: from 7:00 AM this morning to 7:00 AM yesterday morning.&lt;BR /&gt;&lt;BR /&gt;Hope that helps!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 12 Feb 2004 11:25:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-archiving-tar-find-for-files-that-are-current/m-p/3190244#M164557</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2004-02-12T11:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: File archiving tar  find for files that are current</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-archiving-tar-find-for-files-that-are-current/m-p/3190245#M164558</link>
      <description>Hi Pete,&lt;BR /&gt;&lt;BR /&gt;I understood so.&lt;BR /&gt;&lt;BR /&gt;He, that is able to read, is in the advantage! If you read carefully my post, you will notice, that I said -mtime -1 and not -mtime +1. :^)&lt;BR /&gt;&lt;BR /&gt;-mtime -1 gets all files younger than 24h&lt;BR /&gt;&lt;BR /&gt;Michael&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Feb 2004 11:38:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-archiving-tar-find-for-files-that-are-current/m-p/3190245#M164558</guid>
      <dc:creator>Michael Schulte zur Sur</dc:creator>
      <dc:date>2004-02-12T11:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: File archiving tar  find for files that are current</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-archiving-tar-find-for-files-that-are-current/m-p/3190246#M164559</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;As an alternative to the suggestions already made, you could use fbackup to take a full backup of your indexes, then use the incremental function of fbakup to get only the changed (or new) files.&lt;BR /&gt;&lt;BR /&gt;See man fbackup.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Mark</description>
      <pubDate>Fri, 13 Feb 2004 10:01:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-archiving-tar-find-for-files-that-are-current/m-p/3190246#M164559</guid>
      <dc:creator>Mark Ellzey</dc:creator>
      <dc:date>2004-02-13T10:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: File archiving tar  find for files that are current</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-archiving-tar-find-for-files-that-are-current/m-p/3190247#M164560</link>
      <description>Thanks Marc, I am a administrator for several HP servers and a bunch of Sun Solaris system running networker (the worse possible backup solution you could use), I love the fbackup and frecover of the HP-UX systems.</description>
      <pubDate>Fri, 13 Feb 2004 10:07:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-archiving-tar-find-for-files-that-are-current/m-p/3190247#M164560</guid>
      <dc:creator>Belinda Dermody</dc:creator>
      <dc:date>2004-02-13T10:07:43Z</dc:date>
    </item>
  </channel>
</rss>

