<?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: how to use tar command to run differential backup? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-tar-command-to-run-differential-backup/m-p/4273949#M334673</link>
    <description>Hi Steve P.&lt;BR /&gt;Thanks for the info. I will try this on my development server. Thanks.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Jan</description>
    <pubDate>Wed, 24 Sep 2008 12:39:39 GMT</pubDate>
    <dc:creator>Jan Shu</dc:creator>
    <dc:date>2008-09-24T12:39:39Z</dc:date>
    <item>
      <title>how to use tar command to run differential backup?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-tar-command-to-run-differential-backup/m-p/4273941#M334665</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;I use tar command to run daily full backup on file systems on a SAS9 DI server. My users would like to have real-time backup on their SAS data folders. How to use tar command to run differential backup so it won't take longer time copy data? Thanks.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Jan Shu&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Sep 2008 19:57:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-tar-command-to-run-differential-backup/m-p/4273941#M334665</guid>
      <dc:creator>Jan Shu</dc:creator>
      <dc:date>2008-09-22T19:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to use tar command to run differential backup?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-tar-command-to-run-differential-backup/m-p/4273942#M334666</link>
      <description>I know of no built-in incremental backup&lt;BR /&gt;capability in the standard HP-UX "tar"&lt;BR /&gt;program.  Have you considered using "cpio" or&lt;BR /&gt;GNU "tar"?&lt;BR /&gt;&lt;BR /&gt;If you can devise a "find" (or other) command&lt;BR /&gt;which will identify the files you wish to&lt;BR /&gt;archive, then you can feed those names into&lt;BR /&gt;"tar" (or, perhaps more easily, into "pax").&lt;BR /&gt;&lt;BR /&gt;It's often helpful to disclose your OS (and&lt;BR /&gt;its version).</description>
      <pubDate>Mon, 22 Sep 2008 22:03:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-tar-command-to-run-differential-backup/m-p/4273942#M334666</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-09-22T22:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to use tar command to run differential backup?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-tar-command-to-run-differential-backup/m-p/4273943#M334667</link>
      <description>HI Jan:&lt;BR /&gt;&lt;BR /&gt;The HP-UX proprietary (but free) 'fbackup'/'frecover' utilities allow you to setup incremental backups.  Be advised that they are deprecated beginning with 11.31, however ( a real shame, in my opinion ).&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 22 Sep 2008 22:13:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-tar-command-to-run-differential-backup/m-p/4273943#M334667</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-09-22T22:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to use tar command to run differential backup?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-tar-command-to-run-differential-backup/m-p/4273944#M334668</link>
      <description>Hi Steven,&lt;BR /&gt;Thanks for the reply. This server has HPUX 11.23 OE.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Sep 2008 11:41:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-tar-command-to-run-differential-backup/m-p/4273944#M334668</guid>
      <dc:creator>Jan Shu</dc:creator>
      <dc:date>2008-09-23T11:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to use tar command to run differential backup?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-tar-command-to-run-differential-backup/m-p/4273945#M334669</link>
      <description>Hi James,&lt;BR /&gt;Thanks for the info. I will take a look the fbackup. I think it is in SAM.</description>
      <pubDate>Tue, 23 Sep 2008 11:42:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-tar-command-to-run-differential-backup/m-p/4273945#M334669</guid>
      <dc:creator>Jan Shu</dc:creator>
      <dc:date>2008-09-23T11:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to use tar command to run differential backup?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-tar-command-to-run-differential-backup/m-p/4273946#M334670</link>
      <description>&lt;BR /&gt;You get a list of files via&lt;BR /&gt;&lt;BR /&gt;find / -print &amp;gt; mybiglist.txt&lt;BR /&gt;&lt;BR /&gt;Now what if you had a file from the last backup time?  Like.... /utl/backups/lasttime&lt;BR /&gt;&lt;BR /&gt;find / -newer /utl/backups/lasttime -print &amp;gt; mybiglist_inc.txt&lt;BR /&gt;&lt;BR /&gt;So....&lt;BR /&gt;Level 0 backup.(everything)&lt;BR /&gt;1. make a list of all files.&lt;BR /&gt;2. backup from the list.&lt;BR /&gt;3. make a file called /utl/backups/lasttime via the touch command.&lt;BR /&gt;&lt;BR /&gt;Level 1 backup.(everything since the last backup)&lt;BR /&gt;1. make a list of all files newer than "lasttime".&lt;BR /&gt;2. backup from the list.&lt;BR /&gt;3. make a file called /utl/backups/lasttime via the touch command.&lt;BR /&gt;&lt;BR /&gt;Note I didn't mention the tar syntax?  I use cpio. &lt;BR /&gt;It would be....&lt;BR /&gt;cat mybiglist.txt | cpio -odumvc &amp;gt; /dev/rmt/0m&lt;BR /&gt;&lt;BR /&gt;Tar can do this..uh...right?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Sep 2008 11:47:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-tar-command-to-run-differential-backup/m-p/4273946#M334670</guid>
      <dc:creator>Steve Post</dc:creator>
      <dc:date>2008-09-24T11:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to use tar command to run differential backup?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-tar-command-to-run-differential-backup/m-p/4273947#M334671</link>
      <description>Hi Steve P.,&lt;BR /&gt;Thanks for the find and cpio commands. How to restore data from above backup files? Do I restore from the backup_0 and then the backup_newer? Thanks.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Jan&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Sep 2008 12:04:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-tar-command-to-run-differential-backup/m-p/4273947#M334671</guid>
      <dc:creator>Jan Shu</dc:creator>
      <dc:date>2008-09-24T12:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to use tar command to run differential backup?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-tar-command-to-run-differential-backup/m-p/4273948#M334672</link>
      <description>First off, if I were you, I would look into fbackup and frecover.  Everyone likes these.  They are fast and simple.  The bad news about it is that it is one backup per tape.  The good news is it is fast and simple to backup and recover.  I replaced my cpio backups with this.  &lt;BR /&gt;&lt;BR /&gt;To backup with cpio to a tape drive called /dev/rmt/0m.  I'll assume you have a full backup on a tape, and an incremental backup on the same tape, after the full.&lt;BR /&gt;&lt;BR /&gt;find / -print | cpio -odumvc &amp;gt; /dev/rmt/0mn&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;To recover file /tmp/junkdir/billybob.txt from the first, full backup:&lt;BR /&gt;1.  The proper path of billybob.txt needs to be known.  If you try to recover ./tmp/junkdir/billybob.txt, it won't find it.  If you try just billybob.txt, it won't find it.  &lt;BR /&gt;So you do this....&lt;BR /&gt;cpio -itdumvc &amp;lt; /dev/rmt/0m &amp;gt; cpio.filelist&lt;BR /&gt;Note the "t" here.  This t is for "table of contents".  It's a listing of the files. &lt;BR /&gt;Then...&lt;BR /&gt;grep billybob.txt cpio.filelist&lt;BR /&gt;This shows it as /tmp/junkdir/billybob.txt&lt;BR /&gt;I always worry about recovering from root.  So I don't do it.  I recover on a big junk directory and move it after the fact.&lt;BR /&gt;cd /bigjunkdir&lt;BR /&gt;cpio -idumvc &amp;lt; /dev/rmt/0m  /tmp/junkdir/billybob.txt&lt;BR /&gt;&lt;BR /&gt;This makes file /bigjunkdir/tmp/junkdir/billybob.txt&lt;BR /&gt;I next copy billybob.txt to its proper place and get rid of directory /bigjunkdir/tmp.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;What about incremental recovery?  It's still recovery.  Perhaps you want incremental and full backups on the same tape?&lt;BR /&gt;You can't do that with fbackup/frecover.  You can do that with cpio. &lt;BR /&gt;mt -f /dev/rmt/0mn  rewind&lt;BR /&gt;this rewinds the tape&lt;BR /&gt;mt -f /dev/rmt/0mn fsf 1&lt;BR /&gt;This moves the tape past the first backup on the tape.  I'll assume it is a full backup.&lt;BR /&gt;At this point, I'll assume you have your incremental backup.&lt;BR /&gt;Run that "cpio -itdumvc &amp;lt; /dev/rmt/0mn" to get a list of what is on the second backup on the tape, aka the incremental backup.&lt;BR /&gt;Note the "n" in /dev/rmt/0mn tells the tape to NOT rewind when it is done.  &lt;BR /&gt;&lt;BR /&gt;Ok......&lt;BR /&gt;cd /bigjunkdir&lt;BR /&gt;mt -f /dev/rmt/0mn rewind&lt;BR /&gt;mt -f /dev/rmt/0mn fsf 1&lt;BR /&gt;cpio -itdumvc &amp;lt; /dev/rmt/0mn &amp;gt; filelist&lt;BR /&gt;grep billybob.txt filelist&lt;BR /&gt;Now I know I want to recover "/tmp/junkdir/billybob.txt"&lt;BR /&gt;mt -f /dev/rmt/0mn rewind&lt;BR /&gt;mt -f /dev/rmt/0mn fsf 1&lt;BR /&gt;cpio -idumvc &amp;lt; /dev/rmt/0mn /tmp/junkdir/billybob.txt&lt;BR /&gt;&lt;BR /&gt;Now the incremental billybob.txt file showed up in /bigjunkdir/tmp/junkdir.&lt;BR /&gt;mt -f /dev/rmt/0mn rewind&lt;BR /&gt;Now the tape is rewound.&lt;BR /&gt;&lt;BR /&gt;The thing is...you need to know that the first thing on the tape is the full backup with cpio, and the second thing is the incremental backup with cpio.  You can find this out with that "mt" command and "cpio -idtumvc" command.  &lt;BR /&gt;&lt;BR /&gt;Now....forget about cpio and use fbackup/frecover.  You can only store one backup on a tape.  But it is easier and faster.   Let me know if you want some help on that.  I think I have typed way WAY too much here!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Sep 2008 12:36:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-tar-command-to-run-differential-backup/m-p/4273948#M334672</guid>
      <dc:creator>Steve Post</dc:creator>
      <dc:date>2008-09-24T12:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to use tar command to run differential backup?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-tar-command-to-run-differential-backup/m-p/4273949#M334673</link>
      <description>Hi Steve P.&lt;BR /&gt;Thanks for the info. I will try this on my development server. Thanks.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Jan</description>
      <pubDate>Wed, 24 Sep 2008 12:39:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-tar-command-to-run-differential-backup/m-p/4273949#M334673</guid>
      <dc:creator>Jan Shu</dc:creator>
      <dc:date>2008-09-24T12:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to use tar command to run differential backup?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-tar-command-to-run-differential-backup/m-p/4273950#M334674</link>
      <description>feel free to ask more questions.  I'll have your forum thread notify me if more is added.&lt;BR /&gt;&lt;BR /&gt;And REALLY now....&lt;BR /&gt;fbackup and frestore is a better way to go.</description>
      <pubDate>Wed, 24 Sep 2008 15:12:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-tar-command-to-run-differential-backup/m-p/4273950#M334674</guid>
      <dc:creator>Steve Post</dc:creator>
      <dc:date>2008-09-24T15:12:14Z</dc:date>
    </item>
  </channel>
</rss>

