<?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: Regular expression with frecover in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/regular-expression-with-frecover/m-p/2775308#M75798</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;As noted the wild card cannot work because the command line does not know what is on the tape&lt;BR /&gt;and could never fill in the values.&lt;BR /&gt;&lt;BR /&gt;The graph file is the best solution.&lt;BR /&gt;&lt;BR /&gt;What is written on my `fbackup' tape?&lt;BR /&gt;&lt;BR /&gt;To read your tape you must always use the `frecover' command.&lt;BR /&gt;&lt;BR /&gt;/etc/frecover -I -      (break or control-c will pause the list)&lt;BR /&gt;&lt;BR /&gt;This command will display the contents to the standard output.&lt;BR /&gt;If the list is long, it may be better to save the index in a file.&lt;BR /&gt;&lt;BR /&gt;/etc/frecover -I /tmp/index&lt;BR /&gt;&lt;BR /&gt;The advantage of `fbackup' is that the index is written in the&lt;BR /&gt;beginning of the tape. `frecover' does not scan the whole tape.&lt;BR /&gt;&lt;BR /&gt;Thus &lt;BR /&gt;/etc/frecover -I -|grep Z|while read line&lt;BR /&gt;do&lt;BR /&gt;echo "i "$line &amp;gt;&amp;gt; graphfile&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Will enable you to extract the filenames you wish to a graph file and then use it.&lt;BR /&gt;&lt;BR /&gt;Examples&lt;BR /&gt;&lt;BR /&gt;Restore a complete directory&lt;BR /&gt;&lt;BR /&gt;/etc/frecover -xi/directory&lt;BR /&gt;/etc/frecover -x -i/directory1 -i/directory2&lt;BR /&gt;&lt;BR /&gt;When restoring a directory, `frecover' will not overwrite an existing&lt;BR /&gt;file, except if the -o option is used.&lt;BR /&gt;&lt;BR /&gt;It may be nice to recover relative somewhere in a directory like /tmp/local.&lt;BR /&gt;To restore relative, you must go first to the directory with cd, and then&lt;BR /&gt;use the X or F option.&lt;BR /&gt;&lt;BR /&gt;cd /tmp/local; /etc/frecover -xvXi /directory&lt;BR /&gt;        (with directory tree path )&lt;BR /&gt;cd /tmp/local; /etc/frecover -xvFi /directory&lt;BR /&gt;        (without path, only files names)&lt;BR /&gt;&lt;BR /&gt;Restore of a few files from archive.&lt;BR /&gt;&lt;BR /&gt;cd /tmp/local;/etc/frecover -xvF -i/path1/filename1 -i/path2/filename2&lt;BR /&gt;The files will be restored under the local directory.&lt;BR /&gt;&lt;BR /&gt;Restore of backup over network.&lt;BR /&gt;&lt;BR /&gt;Restore from a remote DAT/DDS drive&lt;BR /&gt;&lt;BR /&gt;/etc/frecover -xi/directory -f remote_name:/dev/rmt/0m&lt;BR /&gt;&lt;BR /&gt;Remote restore with local DAT/DDS drive&lt;BR /&gt;&lt;BR /&gt;remsh remote_name " /etc/frecover -xi/directory -f local_name:/dev/rmt/0m"&lt;BR /&gt;&lt;BR /&gt;Fbackup/frecover with software compression.&lt;BR /&gt;&lt;BR /&gt;It may be helpful to compress your data.&lt;BR /&gt;&lt;BR /&gt;To tape:&lt;BR /&gt;fbackup -0 -i/dir -f - | compress | dd of=/dev/rmt/0m obs=10k&lt;BR /&gt;&lt;BR /&gt;Read index from tape:&lt;BR /&gt;dd if=/dev/rmt/0m ibs=10k | uncompress | frecover -I - -f -&lt;BR /&gt;&lt;BR /&gt;Recover from tape:&lt;BR /&gt;dd if=/dev/rmt/0m ibs=10k | uncompress | frecover -x -i/dir&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;       steve Steel</description>
    <pubDate>Tue, 30 Jul 2002 06:30:51 GMT</pubDate>
    <dc:creator>Steve Steel</dc:creator>
    <dc:date>2002-07-30T06:30:51Z</dc:date>
    <item>
      <title>Regular expression with frecover</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regular-expression-with-frecover/m-p/2775306#M75796</link>
      <description>Iwant to use :&lt;BR /&gt;/usr/sbin/frecover -x -i '*.Z.*' or anything&lt;BR /&gt;but it doesn't seem to work.&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Jul 2002 05:37:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regular-expression-with-frecover/m-p/2775306#M75796</guid>
      <dc:creator>CLUTIER</dc:creator>
      <dc:date>2002-07-30T05:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Regular expression with frecover</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regular-expression-with-frecover/m-p/2775307#M75797</link>
      <description>Sorry that is not how frecover works. You need to set up a file called a graph file, place your files in it, and then recover them. I've never seen wildcards used like that.&lt;BR /&gt;&lt;BR /&gt;# vi /tmp/graph&lt;BR /&gt;insert something like&lt;BR /&gt;&lt;BR /&gt;i /usr/myfiles/file1&lt;BR /&gt;i /usr/myfiles/file2&lt;BR /&gt;etc&lt;BR /&gt;etc&lt;BR /&gt;&lt;BR /&gt;Save the file, then run again.&lt;BR /&gt;&lt;BR /&gt;# /usr/sbin/frecover -x -g /tmp/graph -f /dev/rmt/0m (assuming this is your device file)&lt;BR /&gt;&lt;BR /&gt;Have a look at the man page for further explanation.&lt;BR /&gt;&lt;BR /&gt;# man frecover&lt;BR /&gt;&lt;BR /&gt;If you need further assistance......</description>
      <pubDate>Tue, 30 Jul 2002 06:08:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regular-expression-with-frecover/m-p/2775307#M75797</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2002-07-30T06:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Regular expression with frecover</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regular-expression-with-frecover/m-p/2775308#M75798</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;As noted the wild card cannot work because the command line does not know what is on the tape&lt;BR /&gt;and could never fill in the values.&lt;BR /&gt;&lt;BR /&gt;The graph file is the best solution.&lt;BR /&gt;&lt;BR /&gt;What is written on my `fbackup' tape?&lt;BR /&gt;&lt;BR /&gt;To read your tape you must always use the `frecover' command.&lt;BR /&gt;&lt;BR /&gt;/etc/frecover -I -      (break or control-c will pause the list)&lt;BR /&gt;&lt;BR /&gt;This command will display the contents to the standard output.&lt;BR /&gt;If the list is long, it may be better to save the index in a file.&lt;BR /&gt;&lt;BR /&gt;/etc/frecover -I /tmp/index&lt;BR /&gt;&lt;BR /&gt;The advantage of `fbackup' is that the index is written in the&lt;BR /&gt;beginning of the tape. `frecover' does not scan the whole tape.&lt;BR /&gt;&lt;BR /&gt;Thus &lt;BR /&gt;/etc/frecover -I -|grep Z|while read line&lt;BR /&gt;do&lt;BR /&gt;echo "i "$line &amp;gt;&amp;gt; graphfile&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Will enable you to extract the filenames you wish to a graph file and then use it.&lt;BR /&gt;&lt;BR /&gt;Examples&lt;BR /&gt;&lt;BR /&gt;Restore a complete directory&lt;BR /&gt;&lt;BR /&gt;/etc/frecover -xi/directory&lt;BR /&gt;/etc/frecover -x -i/directory1 -i/directory2&lt;BR /&gt;&lt;BR /&gt;When restoring a directory, `frecover' will not overwrite an existing&lt;BR /&gt;file, except if the -o option is used.&lt;BR /&gt;&lt;BR /&gt;It may be nice to recover relative somewhere in a directory like /tmp/local.&lt;BR /&gt;To restore relative, you must go first to the directory with cd, and then&lt;BR /&gt;use the X or F option.&lt;BR /&gt;&lt;BR /&gt;cd /tmp/local; /etc/frecover -xvXi /directory&lt;BR /&gt;        (with directory tree path )&lt;BR /&gt;cd /tmp/local; /etc/frecover -xvFi /directory&lt;BR /&gt;        (without path, only files names)&lt;BR /&gt;&lt;BR /&gt;Restore of a few files from archive.&lt;BR /&gt;&lt;BR /&gt;cd /tmp/local;/etc/frecover -xvF -i/path1/filename1 -i/path2/filename2&lt;BR /&gt;The files will be restored under the local directory.&lt;BR /&gt;&lt;BR /&gt;Restore of backup over network.&lt;BR /&gt;&lt;BR /&gt;Restore from a remote DAT/DDS drive&lt;BR /&gt;&lt;BR /&gt;/etc/frecover -xi/directory -f remote_name:/dev/rmt/0m&lt;BR /&gt;&lt;BR /&gt;Remote restore with local DAT/DDS drive&lt;BR /&gt;&lt;BR /&gt;remsh remote_name " /etc/frecover -xi/directory -f local_name:/dev/rmt/0m"&lt;BR /&gt;&lt;BR /&gt;Fbackup/frecover with software compression.&lt;BR /&gt;&lt;BR /&gt;It may be helpful to compress your data.&lt;BR /&gt;&lt;BR /&gt;To tape:&lt;BR /&gt;fbackup -0 -i/dir -f - | compress | dd of=/dev/rmt/0m obs=10k&lt;BR /&gt;&lt;BR /&gt;Read index from tape:&lt;BR /&gt;dd if=/dev/rmt/0m ibs=10k | uncompress | frecover -I - -f -&lt;BR /&gt;&lt;BR /&gt;Recover from tape:&lt;BR /&gt;dd if=/dev/rmt/0m ibs=10k | uncompress | frecover -x -i/dir&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;       steve Steel</description>
      <pubDate>Tue, 30 Jul 2002 06:30:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regular-expression-with-frecover/m-p/2775308#M75798</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2002-07-30T06:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: Regular expression with frecover</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regular-expression-with-frecover/m-p/2775309#M75799</link>
      <description>The problem is the usage of 2 *-signs.&lt;BR /&gt;Maybe you can try something like:&lt;BR /&gt;&lt;BR /&gt;for FILE in `frecover -I / -f /dev/rmt/0m | grep ".Z"`&lt;BR /&gt;do&lt;BR /&gt; frecover -x -i $FILE -f /dev/rmt/0m&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;But i would first dump the index into a file, instead of the construction as shown above.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ceesjan</description>
      <pubDate>Tue, 30 Jul 2002 06:49:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regular-expression-with-frecover/m-p/2775309#M75799</guid>
      <dc:creator>Ceesjan van Hattum</dc:creator>
      <dc:date>2002-07-30T06:49:40Z</dc:date>
    </item>
  </channel>
</rss>

