<?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: Using find with fbackup in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/using-find-with-fbackup/m-p/5023487#M429112</link>
    <description>Hi James,&lt;BR /&gt;&lt;BR /&gt;Ah ok, I get it. &lt;BR /&gt;&lt;BR /&gt;Since I am trying to automate this, do you know of a simple way to get the "i"'s inserted to my find output? Thanks for the quick reply!&lt;BR /&gt;&lt;BR /&gt;-Vince</description>
    <pubDate>Thu, 18 Jan 2007 12:18:04 GMT</pubDate>
    <dc:creator>Vince Ungaro</dc:creator>
    <dc:date>2007-01-18T12:18:04Z</dc:date>
    <item>
      <title>Using find with fbackup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-find-with-fbackup/m-p/5023485#M429110</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I wanted to know if it's possible to pipe or redirect the list of files to be backed up to fbackup. I want to do something similiar to how find is used in conjunction with tar. For example:&lt;BR /&gt;&lt;BR /&gt;find / -print | fbackup ....</description>
      <pubDate>Thu, 18 Jan 2007 11:57:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-find-with-fbackup/m-p/5023485#M429110</guid>
      <dc:creator>Vince Ungaro</dc:creator>
      <dc:date>2007-01-18T11:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using find with fbackup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-find-with-fbackup/m-p/5023486#M429111</link>
      <description>Hi Vince:&lt;BR /&gt;&lt;BR /&gt;No, what you suggest won't work quite that way.  However, 'fbackup' can use a "graph" file in which directories and/or files can be listed for inclusion and/or exclusion.  Hence, your 'fnid' output could produce a graph file that looks like:&lt;BR /&gt;&lt;BR /&gt;i /etc/hosts&lt;BR /&gt;i /etc/group&lt;BR /&gt;i /etc/passwd&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 18 Jan 2007 12:03:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-find-with-fbackup/m-p/5023486#M429111</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-01-18T12:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using find with fbackup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-find-with-fbackup/m-p/5023487#M429112</link>
      <description>Hi James,&lt;BR /&gt;&lt;BR /&gt;Ah ok, I get it. &lt;BR /&gt;&lt;BR /&gt;Since I am trying to automate this, do you know of a simple way to get the "i"'s inserted to my find output? Thanks for the quick reply!&lt;BR /&gt;&lt;BR /&gt;-Vince</description>
      <pubDate>Thu, 18 Jan 2007 12:18:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-find-with-fbackup/m-p/5023487#M429112</guid>
      <dc:creator>Vince Ungaro</dc:creator>
      <dc:date>2007-01-18T12:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using find with fbackup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-find-with-fbackup/m-p/5023488#M429113</link>
      <description>Hi (again) Vince:&lt;BR /&gt;&lt;BR /&gt;Given a file like:&lt;BR /&gt;&lt;BR /&gt;/etc/group&lt;BR /&gt;/etc/hosts&lt;BR /&gt;/etc/passwd&lt;BR /&gt;&lt;BR /&gt;You can add the leading "i " with:&lt;BR /&gt;&lt;BR /&gt;# sed -e 's/^/i /p' file &amp;gt; file.out&lt;BR /&gt;&lt;BR /&gt;...or update your file in-place:&lt;BR /&gt;&lt;BR /&gt;# perl -pi -e 's/^/i /' file&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 18 Jan 2007 12:28:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-find-with-fbackup/m-p/5023488#M429113</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-01-18T12:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using find with fbackup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-find-with-fbackup/m-p/5023489#M429114</link>
      <description>Something like this should work (although there undoubtedly many ways to accomplish the task):&lt;BR /&gt;&lt;BR /&gt;while read FILENAME&lt;BR /&gt;do&lt;BR /&gt;  echo "i ${FILENAME}" &amp;gt;&amp;gt; mygraphfile&lt;BR /&gt;done &amp;lt; $(find / -print)</description>
      <pubDate>Thu, 18 Jan 2007 12:29:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-find-with-fbackup/m-p/5023489#M429114</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2007-01-18T12:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using find with fbackup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-find-with-fbackup/m-p/5023490#M429115</link>
      <description>Both solutions worked like a charm. Thanks!&lt;BR /&gt;&lt;BR /&gt;Now this might be off topic but I am still having issues automating this. Please bear with me. I have a temp file that contains the find command to generate the list of files to back up. I use this temp file to execute the find. Then I run your suggested sed command to create a new file for fbackup list but it's not working as expected. Code is below:&lt;BR /&gt;&lt;BR /&gt;FILES=`cat $TempFile1` # Temp file with find command&lt;BR /&gt;$FILES &amp;gt; /tmp/files # execute find command and generate file list for fbackup&lt;BR /&gt;sed -e 's/^/i /p' /tmp/files &amp;gt; file.list # insert the "i"'s&lt;BR /&gt;fbackup -0v -g /tmp/file.list -f - | some other command # run backup&lt;BR /&gt;&lt;BR /&gt;Is my logic or syntax flawed? The error I get is:&lt;BR /&gt;&lt;BR /&gt;fbackup(1412): unable to open graph file /tmp/file.list&lt;BR /&gt;fbackup(1404): no files have been specified; (use at least one -i and/or -g option)</description>
      <pubDate>Thu, 18 Jan 2007 12:50:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-find-with-fbackup/m-p/5023490#M429115</guid>
      <dc:creator>Vince Ungaro</dc:creator>
      <dc:date>2007-01-18T12:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using find with fbackup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-find-with-fbackup/m-p/5023491#M429116</link>
      <description>Hi (again) Vince:&lt;BR /&gt;&lt;BR /&gt;I think that you do not have the graph file where you believe you do, hence the error:&lt;BR /&gt;&lt;BR /&gt;fbackup(1412): unable to open graph file /tmp/file.list&lt;BR /&gt;&lt;BR /&gt;Your post shows redirection without an absolute path:&lt;BR /&gt;&lt;BR /&gt;# sed -e 's/^/i /p' /tmp/files &amp;gt; file.list&lt;BR /&gt;&lt;BR /&gt;..but then:&lt;BR /&gt;&lt;BR /&gt;# fbackup -0v -g /tmp/file.list -f - &lt;BR /&gt;&lt;BR /&gt;...so where is "file.list" really?&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Jan 2007 13:02:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-find-with-fbackup/m-p/5023491#M429116</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-01-18T13:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using find with fbackup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-find-with-fbackup/m-p/5023492#M429117</link>
      <description>Doh! You're right. Thanks! It works now. Case closed. Again, thanks for the quick response and the help. I love the HP forums!</description>
      <pubDate>Thu, 18 Jan 2007 13:06:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-find-with-fbackup/m-p/5023492#M429117</guid>
      <dc:creator>Vince Ungaro</dc:creator>
      <dc:date>2007-01-18T13:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using find with fbackup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-find-with-fbackup/m-p/5023493#M429118</link>
      <description>The suggestions above worked like a charm.</description>
      <pubDate>Thu, 18 Jan 2007 13:09:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-find-with-fbackup/m-p/5023493#M429118</guid>
      <dc:creator>Vince Ungaro</dc:creator>
      <dc:date>2007-01-18T13:09:39Z</dc:date>
    </item>
  </channel>
</rss>

