<?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: Tar backup in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup/m-p/3923644#M286380</link>
    <description>Ajit,&lt;BR /&gt;can you please update this thread.&lt;BR /&gt;&lt;BR /&gt;Could you please complete the thread by awarding points to helpful answers and summarising the solution for you.&lt;BR /&gt;&lt;BR /&gt;This will help resolution of similar problems in the future.</description>
    <pubDate>Tue, 16 Jan 2007 04:09:21 GMT</pubDate>
    <dc:creator>Peter Godron</dc:creator>
    <dc:date>2007-01-16T04:09:21Z</dc:date>
    <item>
      <title>Tar backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup/m-p/3923633#M286369</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;              I want to take a backup of a particular file system on an HP-UX machine using tar.&lt;BR /&gt;&lt;BR /&gt;              Now instead of a tape I want this to be backed up in a disk.&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;Kindly advice if this is possible using tar. If not what other backup commands can be used to achieve the same.&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;Kindly note that the disk I am talking is a RAW disk and does not contain any file system.&lt;BR /&gt;&lt;BR /&gt;It is just an ordinary PV unassigned to any VG.&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;Thanks and Regards,&lt;BR /&gt;&lt;BR /&gt;Ajit Kumar.R&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Jan 2007 02:57:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup/m-p/3923633#M286369</guid>
      <dc:creator>AjitKumar</dc:creator>
      <dc:date>2007-01-10T02:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Tar backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup/m-p/3923634#M286370</link>
      <description>Hi Ajit,&lt;BR /&gt;&lt;BR /&gt;Just &lt;BR /&gt;&lt;BR /&gt;# tar cvf /dev/dsk/cXtYdZ "your-files"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;rgds&lt;BR /&gt;HGH&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Jan 2007 03:06:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup/m-p/3923634#M286370</guid>
      <dc:creator>Hemmetter</dc:creator>
      <dc:date>2007-01-10T03:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Tar backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup/m-p/3923635#M286371</link>
      <description>Ajit,&lt;BR /&gt;if your input device is RAW,I don't think tar will work, as it is file-system based.&lt;BR /&gt;&lt;BR /&gt;You may be better of with something like: &lt;BR /&gt;dd -if=&lt;RAW-DEVICE&gt; -of &lt;BACKUP-PATH&gt;&lt;BR /&gt;&lt;BR /&gt;Please also note from "man dd":&lt;BR /&gt;" If if or of refers to a raw disk, bs should always be a multiple of&lt;BR /&gt;      the sector size of the disk.  By default, bs is 512 bytes.  If the&lt;BR /&gt;      sector size of the disk is different from 512 bytes, bs should be&lt;BR /&gt;      specified using a multiple of sector size.  The character special&lt;BR /&gt;      (raw) device file should always be used for devices."&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Please also read:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#33" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#33&lt;/A&gt; on how to reward any useful answers given to your questions.&lt;BR /&gt;&lt;/BACKUP-PATH&gt;&lt;/RAW-DEVICE&gt;</description>
      <pubDate>Wed, 10 Jan 2007 03:16:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup/m-p/3923635#M286371</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2007-01-10T03:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Tar backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup/m-p/3923636#M286372</link>
      <description>Hi Ajit,&lt;BR /&gt;&lt;BR /&gt;I hope can help this ff command using cpio.&lt;BR /&gt;&lt;BR /&gt;Duplicating cpio(1) tapes&lt;BR /&gt;&lt;BR /&gt;Copy contents of cpio(1) tape to disk:&lt;BR /&gt;# dd if=/dev/rmt/ of=/tmp/cpio.contents bs=5k&lt;BR /&gt;&lt;BR /&gt;Copy disk file to new tape:&lt;BR /&gt;# dd if=/tmp/cpio.contents of=/dev/rmt/ bs=5k&lt;BR /&gt;&lt;BR /&gt;Verify new tape is readable by cpio(1):&lt;BR /&gt;# cpio -icvBt &amp;lt; /dev/rmt&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;fbackup(1M) (or SAM) tapes&lt;BR /&gt;&lt;BR /&gt;Note: Unfortunately, fbackup(1M) (and SAM) creates backup&lt;BR /&gt;volumes with a format that makes duplication of volumes by dd(1)&lt;BR /&gt;impossible.&lt;BR /&gt;&lt;BR /&gt;See fbackup(1M) manpage for more information. &lt;BR /&gt;</description>
      <pubDate>Wed, 10 Jan 2007 03:19:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup/m-p/3923636#M286372</guid>
      <dc:creator>Joelmel Roche</dc:creator>
      <dc:date>2007-01-10T03:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Tar backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup/m-p/3923637#M286373</link>
      <description>Dear Ajit,&lt;BR /&gt;&lt;BR /&gt;dd if=/data of=/dev/dsk/c1t5d0 (eaxmple).&lt;BR /&gt;&lt;BR /&gt;dd will be the option for raw device usage.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;B.Ganesh</description>
      <pubDate>Wed, 10 Jan 2007 06:20:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup/m-p/3923637#M286373</guid>
      <dc:creator>Ganesh Balraman</dc:creator>
      <dc:date>2007-01-10T06:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Tar backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup/m-p/3923638#M286374</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I think 'dd' is a very good command for what you want.&lt;BR /&gt;So you get a identical duplicate of your disk.&lt;BR /&gt;&lt;BR /&gt;But Peter's command is maybe a little bit confusing - note: '-if' is your source and '-of' is your target. You can use the raw device for both disks.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Volkmar&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Jan 2007 07:10:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup/m-p/3923638#M286374</guid>
      <dc:creator>V. Nyga</dc:creator>
      <dc:date>2007-01-10T07:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Tar backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup/m-p/3923639#M286375</link>
      <description>hi Ajit,&lt;BR /&gt;&lt;BR /&gt;what type of application are your running?&lt;BR /&gt;&lt;BR /&gt;Make sure that you have stopped the application or database system before doing the backup of the raw device...&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Wed, 10 Jan 2007 08:47:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup/m-p/3923639#M286375</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2007-01-10T08:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Tar backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup/m-p/3923640#M286376</link>
      <description>Hi again,&lt;BR /&gt;&lt;BR /&gt;and:&lt;BR /&gt;your target disk has to be as big as the source disk (or can be bigger).&lt;BR /&gt;&lt;BR /&gt;V.&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Jan 2007 08:57:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup/m-p/3923640#M286376</guid>
      <dc:creator>V. Nyga</dc:creator>
      <dc:date>2007-01-10T08:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Tar backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup/m-p/3923641#M286377</link>
      <description>Ajit,&lt;BR /&gt;&lt;BR /&gt;Also you can monitor the dd process with iostat command , grepping the source and target disk name.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Raj</description>
      <pubDate>Wed, 10 Jan 2007 09:39:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup/m-p/3923641#M286377</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2007-01-10T09:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Tar backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup/m-p/3923642#M286378</link>
      <description>Ajit,&lt;BR /&gt;&lt;BR /&gt;Also you can monitor the dd process with iostat command , grepping the source disk name , with keeping an eye on bps ( Kilobytes transferred per second.), from another session.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Raj</description>
      <pubDate>Wed, 10 Jan 2007 09:41:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup/m-p/3923642#M286378</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2007-01-10T09:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: Tar backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup/m-p/3923643#M286379</link>
      <description>&lt;!--!*#--&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;reading Ajit's request carefully, I see he wants to backup a FILESYSTEM to a disk device (instead of a tape device).&lt;BR /&gt;This is perfectly legal and can be done by tar, when the target (disk) device is NOT used as a filesystem or for anything other (swap, db,...).&lt;BR /&gt;&lt;BR /&gt;root@hp2[209] lvcreate -n tape2 -l 512 vg01&lt;BR /&gt;root@hp2[210] cd /&lt;BR /&gt;root@hp2[211] tar cf /dev/vg01/tape2 etc&lt;BR /&gt;root@hp2[212] tar tvf /dev/vg01/tape2&lt;BR /&gt;r-xr-xr-x   2/2      0 Nov 29 18:04 2006 etc/&lt;BR /&gt;rw-r--r--   0/3    426 Jul 29 18:31 2005 etc/fstab&lt;BR /&gt;rw-r--r--   0/0    736 Jan 10 06:56 2007 etc/mnttab&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;Keep in mind, you must KNOW, that there is a tar output located at this device, though a check like this may help:&lt;BR /&gt;&lt;BR /&gt;root@hp2[213] dd if=/dev/vg01/lvol2 of=/tmp/www bs=5k count=1&lt;BR /&gt;1+0 records in&lt;BR /&gt;1+0 records out&lt;BR /&gt;root@hp2[214] file /tmp/www&lt;BR /&gt;/tmp/www:       tar file&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Wed, 10 Jan 2007 10:11:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup/m-p/3923643#M286379</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2007-01-10T10:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Tar backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup/m-p/3923644#M286380</link>
      <description>Ajit,&lt;BR /&gt;can you please update this thread.&lt;BR /&gt;&lt;BR /&gt;Could you please complete the thread by awarding points to helpful answers and summarising the solution for you.&lt;BR /&gt;&lt;BR /&gt;This will help resolution of similar problems in the future.</description>
      <pubDate>Tue, 16 Jan 2007 04:09:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup/m-p/3923644#M286380</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2007-01-16T04:09:21Z</dc:date>
    </item>
  </channel>
</rss>

