<?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 trouble! in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-trouble/m-p/2652996#M46509</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; The home directory has about 10 different links to different machines, which I dont want to be added to the tar? &lt;BR /&gt;&lt;BR /&gt;Since you have 10 different links to different machines, what is preventing you from creating one more link to just this one more machine you need to copy the data to? :)&lt;BR /&gt;&lt;BR /&gt;Once the link is created, you can simply use cp or cpio (as indicated in above posts) to copy over direct.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
    <pubDate>Fri, 25 Jan 2002 15:51:08 GMT</pubDate>
    <dc:creator>Steven Sim Kok Leong</dc:creator>
    <dc:date>2002-01-25T15:51:08Z</dc:date>
    <item>
      <title>Tar trouble!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-trouble/m-p/2652976#M46489</link>
      <description>Hope someone can help!&lt;BR /&gt;&lt;BR /&gt;I have two machines and need to copy the home area of one and transfer it to the other.  Basically, I have tried to tar the home using the following command.&lt;BR /&gt;&lt;BR /&gt;tar -cvf /home/home.TAR /home&lt;BR /&gt;&lt;BR /&gt;However, this tars fine until it trys to tar the actually tar I am making and so fills the up the home area and runs out of space.  I have tried to tar it to a different file system such at /tmp but there isn't enough space in there and that then fills up.  How can I tar the home area with out the tar file getting stuck tarring itself?!&lt;BR /&gt;&lt;BR /&gt;Oh and I cant stick it on a tape either!  &lt;BR /&gt;Can I make a list of all the file names or something and then make the tar read the names of these files and tar the files, maybe?!!&lt;BR /&gt;Many thanks, David,</description>
      <pubDate>Fri, 25 Jan 2002 14:54:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-trouble/m-p/2652976#M46489</guid>
      <dc:creator>David Heath_1</dc:creator>
      <dc:date>2002-01-25T14:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: Tar trouble!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-trouble/m-p/2652977#M46490</link>
      <description>Try your tar from another directory. Are you in the /home directory when you run the tar?&lt;BR /&gt;go to /&lt;BR /&gt;run &amp;gt; tar -cvf /home/home.tar /home&lt;BR /&gt;&lt;BR /&gt;Bob</description>
      <pubDate>Fri, 25 Jan 2002 15:02:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-trouble/m-p/2652977#M46490</guid>
      <dc:creator>Nobody's Hero</dc:creator>
      <dc:date>2002-01-25T15:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Tar trouble!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-trouble/m-p/2652978#M46491</link>
      <description>Hi David,&lt;BR /&gt;&lt;BR /&gt;If you have NFS configured on the system, then mount the other /home file system on your original server and copy the files using cp, cpio etc.&lt;BR /&gt;&lt;BR /&gt;eg: find /source_dir -depth | cpio -pdlmuva /dest_dir&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Shiju</description>
      <pubDate>Fri, 25 Jan 2002 15:02:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-trouble/m-p/2652978#M46491</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-01-25T15:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Tar trouble!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-trouble/m-p/2652979#M46492</link>
      <description>What I mean is,&lt;BR /&gt;tar -cvf home.tar /home</description>
      <pubDate>Fri, 25 Jan 2002 15:03:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-trouble/m-p/2652979#M46492</guid>
      <dc:creator>Nobody's Hero</dc:creator>
      <dc:date>2002-01-25T15:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Tar trouble!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-trouble/m-p/2652980#M46493</link>
      <description>Just for my understanding, for tmp you tried:&lt;BR /&gt;&lt;BR /&gt;# tar cvf /tmp/home.TAR /home&lt;BR /&gt;&lt;BR /&gt;If that is the case and you still don't have room, try to find another filesystem with room, increase /tmp, if possible.&lt;BR /&gt;&lt;BR /&gt;How about rcp?&lt;BR /&gt;&lt;BR /&gt;Just my thoughts, hope they help&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Fri, 25 Jan 2002 15:03:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-trouble/m-p/2652980#M46493</guid>
      <dc:creator>Christopher McCray_1</dc:creator>
      <dc:date>2002-01-25T15:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Tar trouble!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-trouble/m-p/2652981#M46494</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can use the wildcard * instead. As long as you can perform &lt;BR /&gt;&lt;BR /&gt;# ls /home/* &lt;BR /&gt;&lt;BR /&gt;then this will work.&lt;BR /&gt;&lt;BR /&gt;If you use the wildcard *, the shell will expand it before the tar gets executed.&lt;BR /&gt;&lt;BR /&gt;# tar -cvf /home/home.TAR /home/* &lt;BR /&gt;&lt;BR /&gt;This will prevent home.TAR from tar'ing itself subsequently.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Fri, 25 Jan 2002 15:07:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-trouble/m-p/2652981#M46494</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-01-25T15:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Tar trouble!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-trouble/m-p/2652982#M46495</link>
      <description>Whoa! Thanks for all the quick replies!&lt;BR /&gt;&lt;BR /&gt;Unfortunately I cant extend the filesystems, there not my machines.  I was hoping there would be an easier solution than extending them all.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I am doing the tar from outside the home directory,&lt;BR /&gt;tar -cvf /home/home.TAR /home&lt;BR /&gt;&lt;BR /&gt;And yes when I was in /tmp I did&lt;BR /&gt;tar -cvf /tmp/home.TAR /home&lt;BR /&gt;&lt;BR /&gt;Cheers fo all your helps, &lt;BR /&gt;points coming soon!&lt;BR /&gt;&lt;BR /&gt;David</description>
      <pubDate>Fri, 25 Jan 2002 15:08:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-trouble/m-p/2652982#M46495</guid>
      <dc:creator>David Heath_1</dc:creator>
      <dc:date>2002-01-25T15:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Tar trouble!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-trouble/m-p/2652983#M46496</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;with the combination of find and cpioyou can get it work like this:&lt;BR /&gt;&lt;BR /&gt;find /home ! -name home.CPIO -depth | cpio -oc &amp;gt;/home/home.CPIO&lt;BR /&gt;&lt;BR /&gt;On the other machine do:&lt;BR /&gt;&lt;BR /&gt;cpio -imdc &lt;BR /&gt;Regards</description>
      <pubDate>Fri, 25 Jan 2002 15:09:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-trouble/m-p/2652983#M46496</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2002-01-25T15:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Tar trouble!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-trouble/m-p/2652984#M46497</link>
      <description>Why not just use rcp? Especially if you are moving this to another machine?&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Fri, 25 Jan 2002 15:11:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-trouble/m-p/2652984#M46497</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-01-25T15:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: Tar trouble!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-trouble/m-p/2652985#M46498</link>
      <description>Ok I am tarring from outside of /home as we speak.&lt;BR /&gt;&lt;BR /&gt;If this doesn't work will the wildcard command transverse througout symbolic links to other machines?  The home directory has about 10 different links to different machines, which I dont want to be added to the tar?&lt;BR /&gt;&lt;BR /&gt;Thanks all.</description>
      <pubDate>Fri, 25 Jan 2002 15:12:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-trouble/m-p/2652985#M46498</guid>
      <dc:creator>David Heath_1</dc:creator>
      <dc:date>2002-01-25T15:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Tar trouble!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-trouble/m-p/2652986#M46499</link>
      <description>Hi David,&lt;BR /&gt;&lt;BR /&gt;One way:&lt;BR /&gt;&lt;BR /&gt;# create the tar&lt;BR /&gt;find /home -type f | head -1 | xargs tar cvf /home/home.TAR&lt;BR /&gt;# then add the rest...&lt;BR /&gt;find /home ! -name "home.TAR" -type f | tail +2 | xargs tar rvf /home/home.TAR&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin.</description>
      <pubDate>Fri, 25 Jan 2002 15:14:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-trouble/m-p/2652986#M46499</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2002-01-25T15:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Tar trouble!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-trouble/m-p/2652987#M46500</link>
      <description>Try&lt;BR /&gt;&lt;BR /&gt;tar cvf - /home | gzip &amp;gt; /tmp/home.tar.gz&lt;BR /&gt;&lt;BR /&gt;This should save a lot of space and time.&lt;BR /&gt;&lt;BR /&gt;GL,&lt;BR /&gt;C</description>
      <pubDate>Fri, 25 Jan 2002 15:17:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-trouble/m-p/2652987#M46500</guid>
      <dc:creator>Craig Rants</dc:creator>
      <dc:date>2002-01-25T15:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Tar trouble!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-trouble/m-p/2652988#M46501</link>
      <description>Hi David,&lt;BR /&gt;&lt;BR /&gt;Do a 'bdf' and findout a file system which has free space on it. Then try a tar. &lt;BR /&gt;&lt;BR /&gt;# tar -cvf /test/home.tar /home&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Shiju</description>
      <pubDate>Fri, 25 Jan 2002 15:19:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-trouble/m-p/2652988#M46501</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-01-25T15:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Tar trouble!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-trouble/m-p/2652989#M46502</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you have other filesystems such as nfs-mounted filesystems within /home, then:&lt;BR /&gt;&lt;BR /&gt;# tar cvf home.tar `find /home -xdev -print`&lt;BR /&gt;&lt;BR /&gt;-xdev will prevent the files in other filesystems other than /home from being listed.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Fri, 25 Jan 2002 15:22:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-trouble/m-p/2652989#M46502</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-01-25T15:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: Tar trouble!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-trouble/m-p/2652990#M46503</link>
      <description>Ok!!  Too many answers to keep up with.&lt;BR /&gt;&lt;BR /&gt;I tried tar'ing from outside the directory - same problem, the tar tries to tar itslef fills up /home.&lt;BR /&gt;&lt;BR /&gt;/home is the largest filesystem on the machine with 600mb of data out of 1GB.&lt;BR /&gt;&lt;BR /&gt;The wildcard solution didn't work because I couldn't do a ls /home/*.&lt;BR /&gt;&lt;BR /&gt;The CPIO command didn't work wither.&lt;BR /&gt;&lt;BR /&gt;How can I do rcp?&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Fri, 25 Jan 2002 15:27:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-trouble/m-p/2652990#M46503</guid>
      <dc:creator>David Heath_1</dc:creator>
      <dc:date>2002-01-25T15:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Tar trouble!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-trouble/m-p/2652991#M46504</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;the use of rcp could be:&lt;BR /&gt;&lt;BR /&gt;rcp -rp /home &lt;REMOTE_HOSTNAME&gt;:/&lt;BR /&gt;&lt;BR /&gt;Regards&lt;/REMOTE_HOSTNAME&gt;</description>
      <pubDate>Fri, 25 Jan 2002 15:33:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-trouble/m-p/2652991#M46504</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2002-01-25T15:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Tar trouble!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-trouble/m-p/2652992#M46505</link>
      <description>Hi David,&lt;BR /&gt;&lt;BR /&gt;Check this out for help in rcp:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.docs.hp.com/hpux/onlinedocs/B2355-90148/B2355-90148.html" target="_blank"&gt;http://www.docs.hp.com/hpux/onlinedocs/B2355-90148/B2355-90148.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Shiju&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Jan 2002 15:33:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-trouble/m-p/2652992#M46505</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-01-25T15:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Tar trouble!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-trouble/m-p/2652993#M46506</link>
      <description>Go to the directory&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;rcp -rp /home/directory2Bcopied remothostname:/home&lt;BR /&gt;&lt;BR /&gt;like this:&lt;BR /&gt;&lt;BR /&gt;cd /home&lt;BR /&gt;rcp -rp ./harry  otherhost:/home&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Fri, 25 Jan 2002 15:35:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-trouble/m-p/2652993#M46506</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-01-25T15:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Tar trouble!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-trouble/m-p/2652994#M46507</link>
      <description>Hello again,&lt;BR /&gt;&lt;BR /&gt;First make a /.rhosts file on both machines(if doesn't exist)&lt;BR /&gt;&lt;BR /&gt;add the following entries:&lt;BR /&gt;&lt;BR /&gt;root  host1&lt;BR /&gt;root  host2&lt;BR /&gt;&lt;BR /&gt;save it.  Also, make sure that the entries for login, shell and exec are not commented out in your /etc/inetd.conf and /etc/services files.  If they are, uncomment them and run inetd -c.&lt;BR /&gt;&lt;BR /&gt;then on host1:&lt;BR /&gt;&lt;BR /&gt;# rcp /home/* host2:/home&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;Chris</description>
      <pubDate>Fri, 25 Jan 2002 15:37:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-trouble/m-p/2652994#M46507</guid>
      <dc:creator>Christopher McCray_1</dc:creator>
      <dc:date>2002-01-25T15:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Tar trouble!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-trouble/m-p/2652995#M46508</link>
      <description>oops, of course rcp -rp!!&lt;BR /&gt;&lt;BR /&gt;Good luck&lt;BR /&gt;Chris</description>
      <pubDate>Fri, 25 Jan 2002 15:38:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-trouble/m-p/2652995#M46508</guid>
      <dc:creator>Christopher McCray_1</dc:creator>
      <dc:date>2002-01-25T15:38:28Z</dc:date>
    </item>
  </channel>
</rss>

