<?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/3906579#M283852</link>
    <description>Hi Michael:&lt;BR /&gt;&lt;BR /&gt;GNU 'tar' has far better options available than the standard 'tar'.&lt;BR /&gt;&lt;BR /&gt;In particular, you note that you don't want to cross mountpoints.  That is, if you are copying files from '/', you don't want to descend into '/usr', '/tmp', etc.&lt;BR /&gt;&lt;BR /&gt;To control this, begin with:&lt;BR /&gt;&lt;BR /&gt;# find / -xdev -type f &amp;gt; /tmp/myfiles&lt;BR /&gt;&lt;BR /&gt;# tar -cv -T /tmp/myfiles -f /archivefile_or_tape&lt;BR /&gt;&lt;BR /&gt;Using the standard HP-UX 'tar' you can (sometimes) do:&lt;BR /&gt;&lt;BR /&gt;# tar -cvf /archivefile_or_tape `cat /tmp/myfiles`&lt;BR /&gt;&lt;BR /&gt;The problem, however, is that the shell will expand the 'cat /tmp/myfiles' into a list and can potentially yield an "argument too big" error.&lt;BR /&gt;&lt;BR /&gt;If you are not dedicated to using 'tar', I would suggest 'fbackup'.  Of course, this is HP-UX proprietary and limits you to archiving and extracting on HP servers.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Fri, 01 Dec 2006 09:40:29 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2006-12-01T09:40:29Z</dc:date>
    <item>
      <title>tar backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup/m-p/3906575#M283848</link>
      <description>OK - here is an easy one (I think) - I am trying to make a tar (or cpio) backup of a filesystem that has other filesystems under it. Is there an option to keep the file backup only to files in a given filesytem even if another filesystem is a subdirectoy to the upper level filesystem? Thanks</description>
      <pubDate>Fri, 01 Dec 2006 08:15:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup/m-p/3906575#M283848</guid>
      <dc:creator>Michael Murphy_2</dc:creator>
      <dc:date>2006-12-01T08:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: tar backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup/m-p/3906576#M283849</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;did you try something like:&lt;BR /&gt;&lt;BR /&gt;cd /&lt;YOUR dir=""&gt;&lt;BR /&gt;tar -cvf /tmp/FILES.TAR ./*.*&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj&lt;/YOUR&gt;</description>
      <pubDate>Fri, 01 Dec 2006 08:20:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup/m-p/3906576#M283849</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2006-12-01T08:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: tar backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup/m-p/3906577#M283850</link>
      <description>Hi Michael:&lt;BR /&gt;What Yogeerai provided it the way to do it.  And its a relative backup and restore vs. an absolute.  What's the difference?  The pathway of the archive that your creating.&lt;BR /&gt;&lt;BR /&gt;./*  = relative&lt;BR /&gt;&lt;BR /&gt;/dir/dir/* = absolute&lt;BR /&gt;&lt;BR /&gt;If you absolute restored and the mount point didn't exist then you'd be making a sub directory under / (root) and quickly max out.</description>
      <pubDate>Fri, 01 Dec 2006 08:25:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup/m-p/3906577#M283850</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2006-12-01T08:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: tar backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup/m-p/3906578#M283851</link>
      <description>ok - just to be clear - are you saying that a tar -cvf of say for instance / will NOT backup up files in /tmp if /tmp happens to be a filesystem under /?</description>
      <pubDate>Fri, 01 Dec 2006 08:51:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup/m-p/3906578#M283851</guid>
      <dc:creator>Michael Murphy_2</dc:creator>
      <dc:date>2006-12-01T08:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: tar backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup/m-p/3906579#M283852</link>
      <description>Hi Michael:&lt;BR /&gt;&lt;BR /&gt;GNU 'tar' has far better options available than the standard 'tar'.&lt;BR /&gt;&lt;BR /&gt;In particular, you note that you don't want to cross mountpoints.  That is, if you are copying files from '/', you don't want to descend into '/usr', '/tmp', etc.&lt;BR /&gt;&lt;BR /&gt;To control this, begin with:&lt;BR /&gt;&lt;BR /&gt;# find / -xdev -type f &amp;gt; /tmp/myfiles&lt;BR /&gt;&lt;BR /&gt;# tar -cv -T /tmp/myfiles -f /archivefile_or_tape&lt;BR /&gt;&lt;BR /&gt;Using the standard HP-UX 'tar' you can (sometimes) do:&lt;BR /&gt;&lt;BR /&gt;# tar -cvf /archivefile_or_tape `cat /tmp/myfiles`&lt;BR /&gt;&lt;BR /&gt;The problem, however, is that the shell will expand the 'cat /tmp/myfiles' into a list and can potentially yield an "argument too big" error.&lt;BR /&gt;&lt;BR /&gt;If you are not dedicated to using 'tar', I would suggest 'fbackup'.  Of course, this is HP-UX proprietary and limits you to archiving and extracting on HP servers.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 01 Dec 2006 09:40:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup/m-p/3906579#M283852</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-12-01T09:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: tar backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup/m-p/3906580#M283853</link>
      <description>On linux I use tar the same way as James - make a list of files you want backed up.&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;&lt;BR /&gt;TARFILE=`date |awk '{print ($1)}'`.tar&lt;BR /&gt;&lt;BR /&gt;tar -cf /home/backups/$TARFILE `cat /root/backupfiles` &amp;gt;&amp;gt;$LOGFILE 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;cat /root/backupfiles&lt;BR /&gt;/bin&lt;BR /&gt;/boot&lt;BR /&gt;/dev&lt;BR /&gt;/etc&lt;BR /&gt;/home/a2b1002&lt;BR /&gt;/home/a2b1003&lt;BR /&gt;/home/aquota.user&lt;BR /&gt;/home/ftp&lt;BR /&gt;/home/httpd&lt;BR /&gt;/home/info&lt;BR /&gt;/home/webmaster&lt;BR /&gt;/initrd&lt;BR /&gt;/lib&lt;BR /&gt;/misc&lt;BR /&gt;/mnt&lt;BR /&gt;/opt&lt;BR /&gt;/root&lt;BR /&gt;/sbin&lt;BR /&gt;/scripts&lt;BR /&gt;/tmp&lt;BR /&gt;/usr&lt;BR /&gt;/var&lt;BR /&gt;&lt;BR /&gt;As you see, my tarball goes into /home/backups but that dir does NOT get backed up (else I would be backing up my backup).&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Dec 2006 13:52:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup/m-p/3906580#M283853</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2006-12-01T13:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: tar backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup/m-p/3906581#M283854</link>
      <description>hello,&lt;BR /&gt;&lt;BR /&gt;Copy a directory using TAR&lt;BR /&gt;&lt;BR /&gt;tar cf - .|(cd /tmp/tar.test; tar xf -)&lt;BR /&gt; &lt;BR /&gt; * Note you must be root. You must cd to the directory and then issue the command.&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Dec 2006 16:06:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup/m-p/3906581#M283854</guid>
      <dc:creator>Sp4admin</dc:creator>
      <dc:date>2006-12-01T16:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: tar backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup/m-p/3906582#M283855</link>
      <description>&amp;gt;James: GNU 'tar' has far better options available than the standard 'tar'.&lt;BR /&gt;&lt;BR /&gt;pax(1) has a -X option to do this and can write cpio or tar archives.&lt;BR /&gt;&lt;BR /&gt;So:  pax -w -X -f foo.tar /&lt;BR /&gt;&lt;BR /&gt;&amp;gt;The problem is that the shell will expand the 'cat /tmp/myfiles'&lt;BR /&gt;&lt;BR /&gt;cpio takes its list from stdin.</description>
      <pubDate>Fri, 01 Dec 2006 19:12:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup/m-p/3906582#M283855</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2006-12-01T19:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: tar backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup/m-p/3906583#M283856</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Dennis: pax(1) has a -X option to do this and can write cpio or tar archives.&lt;BR /&gt;&lt;BR /&gt;Thanks, Dennis, I guess I need to examine 'pax' in more detail.  It's ideal for handling the restoration of 'tar' archives created with absolute paths to a relative directory but I frankly had not investigated its use in creating 'tar' archives in the first place.&lt;BR /&gt;&lt;BR /&gt;I would note that AIX implements a GNU-like ability to use a file to specify the 'tar' archive.   It's too bad HP doesn't choose to add this enhancement too.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 01 Dec 2006 19:25:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup/m-p/3906583#M283856</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-12-01T19:25:42Z</dc:date>
    </item>
  </channel>
</rss>

