<?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 tar question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-question/m-p/4193521#M323904</link>
    <description>hi...&lt;BR /&gt;i have a tar file named tests_2008.tar , i have two tests files wich have to be added into the file named tests_2008.tar .. how can i do that?&lt;BR /&gt;1.- do i have to uncompress the file and after add them?&lt;BR /&gt;&lt;BR /&gt;please let me know.&lt;BR /&gt;thanks in advance.&lt;BR /&gt;Regards  :)</description>
    <pubDate>Wed, 07 May 2008 16:17:45 GMT</pubDate>
    <dc:creator>Manuales</dc:creator>
    <dc:date>2008-05-07T16:17:45Z</dc:date>
    <item>
      <title>tar question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-question/m-p/4193521#M323904</link>
      <description>hi...&lt;BR /&gt;i have a tar file named tests_2008.tar , i have two tests files wich have to be added into the file named tests_2008.tar .. how can i do that?&lt;BR /&gt;1.- do i have to uncompress the file and after add them?&lt;BR /&gt;&lt;BR /&gt;please let me know.&lt;BR /&gt;thanks in advance.&lt;BR /&gt;Regards  :)</description>
      <pubDate>Wed, 07 May 2008 16:17:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-question/m-p/4193521#M323904</guid>
      <dc:creator>Manuales</dc:creator>
      <dc:date>2008-05-07T16:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: tar question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-question/m-p/4193522#M323905</link>
      <description>Should be able to use tar -rvf test_2008.tar file_list&lt;BR /&gt;&lt;BR /&gt;this will append the new files to the end of the existing tar file.  Make a copy of your tar file and test it out .&lt;BR /&gt;&lt;BR /&gt;man tar&lt;BR /&gt;&lt;BR /&gt;will get you all the needed info.&lt;BR /&gt;</description>
      <pubDate>Wed, 07 May 2008 16:24:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-question/m-p/4193522#M323905</guid>
      <dc:creator>Tim Nelson</dc:creator>
      <dc:date>2008-05-07T16:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: tar question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-question/m-p/4193523#M323906</link>
      <description>ok ...&lt;BR /&gt;do not mind if i use a different absolute path for each file?&lt;BR /&gt;i mean ..&lt;BR /&gt;&lt;BR /&gt;==================&lt;BR /&gt;----  CASE 1 ----&lt;BR /&gt;==================&lt;BR /&gt;tests_2008.tar file has files added with absolute path:&lt;BR /&gt;/home/robert/test1.txt&lt;BR /&gt;/home/robert/test2.txt&lt;BR /&gt;/home/robert/test3.txt&lt;BR /&gt;/home/robert/test4.txt&lt;BR /&gt;/home/robert/test5.txt&lt;BR /&gt;/home/robert/test6.txt&lt;BR /&gt;&lt;BR /&gt;question 1:&lt;BR /&gt;if the first file to be added is located into /home/dani/test7.txt&lt;BR /&gt;and the second file to be added is located into /home/yami/test8.txt&lt;BR /&gt;&lt;BR /&gt;how do i have to use tar commando to add it into the file tests_2008.tar and they be located into /home/robert/ directory?&lt;BR /&gt;&lt;BR /&gt;do i have first to copy the files to be added into /home/robert/ directory? and if i do not have permissions?&lt;BR /&gt;&lt;BR /&gt;==================&lt;BR /&gt;----  CASE 1 ----&lt;BR /&gt;==================&lt;BR /&gt;If the tar file tests_2008.tar contains files without absolute path,&lt;BR /&gt;&lt;BR /&gt;question 1&lt;BR /&gt;how do i add the two files to be added without absolute path?&lt;BR /&gt;how do i add the two files to be added with absolute path (/home/dani/test7.txt and /home/dani/test8.txt)  ?&lt;BR /&gt;&lt;BR /&gt;please let us know.&lt;BR /&gt;thaks a lot, thanks in advance.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 07 May 2008 16:33:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-question/m-p/4193523#M323906</guid>
      <dc:creator>Manuales</dc:creator>
      <dc:date>2008-05-07T16:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: tar question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-question/m-p/4193524#M323907</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Yes you can add files by absolute path.&lt;BR /&gt;&lt;BR /&gt;You might run into trouble if you mix and match.&lt;BR /&gt;&lt;BR /&gt;If every file's absolute path is preserved, that will be fine. But check the file with tar tvf and see what it looks like.&lt;BR /&gt;&lt;BR /&gt;You may need to rebuild with an extra option to preserve full path.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 07 May 2008 17:33:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-question/m-p/4193524#M323907</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2008-05-07T17:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: tar question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-question/m-p/4193525#M323908</link>
      <description>"man tar".&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...]&lt;BR /&gt;&amp;gt; ---- CASE 1 ----&lt;BR /&gt;&amp;gt; [...]&lt;BR /&gt;&amp;gt; ---- CASE 1 ----&lt;BR /&gt;&amp;gt; [...]&lt;BR /&gt;&lt;BR /&gt;Right.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] absolute path [...]&lt;BR /&gt;&lt;BR /&gt;Often, creating a "tar" archive with absolute&lt;BR /&gt;paths is not a good idea.  Modern "tar"&lt;BR /&gt;programs have features which can help, but&lt;BR /&gt;old ones typically don't.&lt;BR /&gt;&lt;BR /&gt;The paths in the "tar" archive are the paths&lt;BR /&gt;you specify when creating the archive.  If&lt;BR /&gt;you want absolute paths, then specify&lt;BR /&gt;absolute paths.  If you want relative paths,&lt;BR /&gt;then specify relative paths.  "tar" doesn't&lt;BR /&gt;care.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] and if i do not have permissions?&lt;BR /&gt;&lt;BR /&gt;Then I guess that you won't be able to do it.&lt;BR /&gt;&lt;BR /&gt;In general, it helps to think about how you&lt;BR /&gt;will be extracting the files from the archive&lt;BR /&gt;before you create the archive.</description>
      <pubDate>Wed, 07 May 2008 17:39:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-question/m-p/4193525#M323908</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-05-07T17:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: tar question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-question/m-p/4193526#M323909</link>
      <description>tar is a very, very simple program. It will happily add the same file with an absolute pathname to the tar file hundreds of times. Some admins use this feature to save money by not buying lots of tapes. tar does not integrate or care anything about the current tar file -- it simply appends whatever you want to the end. This means that if you want the most recent version of a file, you have to wait until all other copies have been restored.&lt;BR /&gt; &lt;BR /&gt;Having said that some admins like to save money, I must tell you that this a very unstable way to keep backups. One mistake and the entire tarfile or tape is useless.&lt;BR /&gt; &lt;BR /&gt;tar does not compress anything. If you want to reduce the size of the tarfile, you must run compress on the tarfile.</description>
      <pubDate>Wed, 07 May 2008 19:30:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-question/m-p/4193526#M323909</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2008-05-07T19:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: tar question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-question/m-p/4193527#M323910</link>
      <description>"how do i have to use tar commando to add it into the file tests_2008.tar and they be located into /home/robert/ directory?"&lt;BR /&gt;&lt;BR /&gt;you don't.  tar will store the absolute path name that was entered (or the relative path name), but has no mechanism that allows the stored path in the archive to be different then the file path originally entered.</description>
      <pubDate>Wed, 07 May 2008 19:37:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-question/m-p/4193527#M323910</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2008-05-07T19:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: tar question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-question/m-p/4193528#M323911</link>
      <description>Shalom again.&lt;BR /&gt;&lt;BR /&gt;Two reasons why I didn't give you the command syntax:&lt;BR /&gt;1) The tar man page in HP-UX is excellent.&lt;BR /&gt;2) Whole country here is on vacation and I don't have access to an HP-UX system.&lt;BR /&gt;&lt;BR /&gt;But again, I emphasize what you want to do is quite possible assuming tar tvf does not show problems that force you to rebuild.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 07 May 2008 19:37:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-question/m-p/4193528#M323911</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2008-05-07T19:37:24Z</dc:date>
    </item>
  </channel>
</rss>

