<?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 can I get tar to exclude mount points in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-tar-to-exclude-mount-points/m-p/2461322#M14181</link>
    <description>The fisrt reply can generate more than once recordings on  tape.&lt;BR /&gt;&lt;BR /&gt;You dont need to use find with pax.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Use pax -w -f /dev/rmt/.... /filesystem or directory.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 03 Nov 2000 13:42:56 GMT</pubDate>
    <dc:creator>Carlos Fernandez Riera</dc:creator>
    <dc:date>2000-11-03T13:42:56Z</dc:date>
    <item>
      <title>How can I get tar to exclude mount points</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-tar-to-exclude-mount-points/m-p/2461318#M14177</link>
      <description>Have a 10.20 system (K450) that has sybase - trying to do the following:&lt;BR /&gt;Backup /home/sybase (But want to exclude /home/sybase/dumps).&lt;BR /&gt;&lt;BR /&gt;the -T option doesnt work to read from a list and I tried a find piped to tar  but it complained that the file list was too long&lt;BR /&gt;&lt;BR /&gt;Any ideas on where to go now.</description>
      <pubDate>Fri, 03 Nov 2000 13:16:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-tar-to-exclude-mount-points/m-p/2461318#M14177</guid>
      <dc:creator>John D. Reaney</dc:creator>
      <dc:date>2000-11-03T13:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get tar to exclude mount points</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-tar-to-exclude-mount-points/m-p/2461319#M14178</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you want to avoid the "argument list too long"&lt;BR /&gt;message, use xargs as in the following command:&lt;BR /&gt;&lt;BR /&gt;find /home/sybase -xdev | xargs tar cvf /dev/rmt/0m (or any other device)&lt;BR /&gt;&lt;BR /&gt;Dan</description>
      <pubDate>Fri, 03 Nov 2000 13:28:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-tar-to-exclude-mount-points/m-p/2461319#M14178</guid>
      <dc:creator>Dan Hetzel</dc:creator>
      <dc:date>2000-11-03T13:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get tar to exclude mount points</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-tar-to-exclude-mount-points/m-p/2461320#M14179</link>
      <description>use pax instead:&lt;BR /&gt;find /home/sybase | grep -v /home/sybase/dump | pax -wf /dev/rmt/0m</description>
      <pubDate>Fri, 03 Nov 2000 13:34:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-tar-to-exclude-mount-points/m-p/2461320#M14179</guid>
      <dc:creator>Rainer_1</dc:creator>
      <dc:date>2000-11-03T13:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get tar to exclude mount points</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-tar-to-exclude-mount-points/m-p/2461321#M14180</link>
      <description>&lt;BR /&gt;Use pax&lt;BR /&gt;&lt;BR /&gt;Pax writes tar achives file format by default and X (uppercase) flag.&lt;BR /&gt;&lt;BR /&gt;Files writed with pax can be read with tar.&lt;BR /&gt;&lt;BR /&gt;See man pax</description>
      <pubDate>Fri, 03 Nov 2000 13:38:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-tar-to-exclude-mount-points/m-p/2461321#M14180</guid>
      <dc:creator>Carlos Fernandez Riera</dc:creator>
      <dc:date>2000-11-03T13:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get tar to exclude mount points</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-tar-to-exclude-mount-points/m-p/2461322#M14181</link>
      <description>The fisrt reply can generate more than once recordings on  tape.&lt;BR /&gt;&lt;BR /&gt;You dont need to use find with pax.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Use pax -w -f /dev/rmt/.... /filesystem or directory.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 03 Nov 2000 13:42:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-tar-to-exclude-mount-points/m-p/2461322#M14181</guid>
      <dc:creator>Carlos Fernandez Riera</dc:creator>
      <dc:date>2000-11-03T13:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get tar to exclude mount points</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-tar-to-exclude-mount-points/m-p/2461323#M14182</link>
      <description>Rainer,&lt;BR /&gt;&lt;BR /&gt;As said at the bottom of the pax manpage,&lt;BR /&gt;its current implementation is based on a&lt;BR /&gt;Posix 2 draft and HP recommends using the&lt;BR /&gt;current version only if absolutely&lt;BR /&gt;necessary.&lt;BR /&gt;&lt;BR /&gt;I wouldn't save any important stuff without&lt;BR /&gt;being sure to be able to re-read it later.&lt;BR /&gt;&lt;BR /&gt;:-((&lt;BR /&gt;&lt;BR /&gt;Dan&lt;BR /&gt;</description>
      <pubDate>Fri, 03 Nov 2000 13:43:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-tar-to-exclude-mount-points/m-p/2461323#M14182</guid>
      <dc:creator>Dan Hetzel</dc:creator>
      <dc:date>2000-11-03T13:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get tar to exclude mount points</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-tar-to-exclude-mount-points/m-p/2461324#M14183</link>
      <description>Thanks - I am trying the xargs right now - may look at pax if this doesnt work, but this is for the dba, and she just wants to tar up her files before an upgrade, I wanted to make it easy for her. &lt;BR /&gt;&lt;BR /&gt;I will post results shortly (and probly try pax anyway - am looking at the man page right now)</description>
      <pubDate>Fri, 03 Nov 2000 13:46:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-tar-to-exclude-mount-points/m-p/2461324#M14183</guid>
      <dc:creator>John D. Reaney</dc:creator>
      <dc:date>2000-11-03T13:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get tar to exclude mount points</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-tar-to-exclude-mount-points/m-p/2461325#M14184</link>
      <description>I did this:&lt;BR /&gt;&lt;BR /&gt;find /home/sybase -xdev | xargs tar -cvf /home/sybase/dumps/jdr.tar&lt;BR /&gt;&lt;BR /&gt;but it still put the /home/sybase/dumps files in the tar. &lt;BR /&gt;&lt;BR /&gt;and yes they are diff mount points &lt;BR /&gt;/dev/vg0101/lvsybase1&lt;BR /&gt;                    698133  500060  128259   80% /home/sybase&lt;BR /&gt;/dev/vg0101/lvsybdump1&lt;BR /&gt;                   1502713  421077  931364   31% /home/sybase/dumps&lt;BR /&gt;&lt;BR /&gt;the find with -xdev works I know, but havent used xargs.</description>
      <pubDate>Fri, 03 Nov 2000 13:50:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-tar-to-exclude-mount-points/m-p/2461325#M14184</guid>
      <dc:creator>John D. Reaney</dc:creator>
      <dc:date>2000-11-03T13:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get tar to exclude mount points</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-tar-to-exclude-mount-points/m-p/2461326#M14185</link>
      <description>Hi John,&lt;BR /&gt;&lt;BR /&gt;As the -xdev option of find visits the mount&lt;BR /&gt;point without visinting the entries below it,&lt;BR /&gt;your xargs tar command receives the /home/sybase/dumps as input.&lt;BR /&gt;&lt;BR /&gt;Adding flag -type f will do the job.&lt;BR /&gt;&lt;BR /&gt;Your command should now look like:&lt;BR /&gt;&lt;BR /&gt;find /home/sybase -type f -xdev | xargs ....&lt;BR /&gt;&lt;BR /&gt;I should have tested the command before posting ;-)&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;&lt;BR /&gt;Dan</description>
      <pubDate>Fri, 03 Nov 2000 14:02:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-tar-to-exclude-mount-points/m-p/2461326#M14185</guid>
      <dc:creator>Dan Hetzel</dc:creator>
      <dc:date>2000-11-03T14:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get tar to exclude mount points</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-tar-to-exclude-mount-points/m-p/2461327#M14186</link>
      <description>John:&lt;BR /&gt;&lt;BR /&gt;An alternative approach would be to use 'fbackup' with a graph that includes and excludes the directories you require.  See the man pages (1M) for fbackup/frestore.  This forum contains a great deal of good discussion regarding fbackup if you are unfamilar with it, too.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 03 Nov 2000 14:10:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-tar-to-exclude-mount-points/m-p/2461327#M14186</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2000-11-03T14:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get tar to exclude mount points</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-tar-to-exclude-mount-points/m-p/2461328#M14187</link>
      <description>John:&lt;BR /&gt;&lt;BR /&gt;you would want to use the find however, if there are other mount points below /home/sybase that you would like to include, -xdev would not help you.  Also, if /home/sybase/dump is not a file system, it would not help you.  You could try a combination of find and grep -v as follows:&lt;BR /&gt;&lt;BR /&gt;find /home/sybase -print | grep -v "/home/sybase/dump/*" | xargs ....&lt;BR /&gt;&lt;BR /&gt;Good luck&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 03 Nov 2000 14:11:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-tar-to-exclude-mount-points/m-p/2461328#M14187</guid>
      <dc:creator>Kofi ARTHIABAH</dc:creator>
      <dc:date>2000-11-03T14:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get tar to exclude mount points</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-tar-to-exclude-mount-points/m-p/2461329#M14188</link>
      <description>I tried the find with the -type f option but the tar file does not contain all the files,  gonna try this and see what i get:&lt;BR /&gt;&lt;BR /&gt;find /home/sybase -xdev -exec tar -cvf /home/sybase/dumps/out.tar {} ;&lt;BR /&gt;&lt;BR /&gt;maybe maybe.. what do you think</description>
      <pubDate>Fri, 03 Nov 2000 14:35:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-tar-to-exclude-mount-points/m-p/2461329#M14188</guid>
      <dc:creator>John D. Reaney</dc:creator>
      <dc:date>2000-11-03T14:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get tar to exclude mount points</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-tar-to-exclude-mount-points/m-p/2461330#M14189</link>
      <description>John,&lt;BR /&gt;&lt;BR /&gt;I don't understand why your tar file doesn't&lt;BR /&gt;include all the files.&lt;BR /&gt;&lt;BR /&gt;Does the command find /xxx -type f -xdev&lt;BR /&gt;show all needed files?&lt;BR /&gt;Do you have the right permissions to read&lt;BR /&gt;all the files?&lt;BR /&gt;&lt;BR /&gt;Dan&lt;BR /&gt;&lt;BR /&gt;PS: adding the -exec tar won't help because&lt;BR /&gt;the mountpoint is still visited.&lt;BR /&gt;As soon as tar receives a directory as &lt;BR /&gt;argument, all files below it are archived.&lt;BR /&gt;That's why I added th e-type f option.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 03 Nov 2000 14:51:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-tar-to-exclude-mount-points/m-p/2461330#M14189</guid>
      <dc:creator>Dan Hetzel</dc:creator>
      <dc:date>2000-11-03T14:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get tar to exclude mount points</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-tar-to-exclude-mount-points/m-p/2461331#M14190</link>
      <description>I know I dont understand either - driving me nuts.  I am now combining a few responses and trying this..&lt;BR /&gt;&lt;BR /&gt;find /home/sybase print |grep -"/home/sybase/dumps" | xargs tar -cvf /home/sybase/dumps/sybdump.tar&lt;BR /&gt;&lt;BR /&gt;The find command on its own (find /home/sybase print |grep -"/home/sybase/dumps" ) works fine - however the tar was creating files in that dir when I used the -xdev on the find.  &lt;BR /&gt;&lt;BR /&gt;Will update in a few when job finishes and I thank all of you for you help..</description>
      <pubDate>Fri, 03 Nov 2000 15:06:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-tar-to-exclude-mount-points/m-p/2461331#M14190</guid>
      <dc:creator>John D. Reaney</dc:creator>
      <dc:date>2000-11-03T15:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get tar to exclude mount points</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-tar-to-exclude-mount-points/m-p/2461332#M14191</link>
      <description>OK more perplexing stuff:&lt;BR /&gt;&lt;BR /&gt;when i run:  find /home/sybase print |grep -v "/home/sybase/dumps" | grep dum i dont get /home/sybase/dumps but when I change teh grep dum to xargs tar cvf /home/sybase/dumps/sybas.tar it wants to tar the /home/sybase/dumps filesystem.....&lt;BR /&gt;</description>
      <pubDate>Fri, 03 Nov 2000 15:17:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-tar-to-exclude-mount-points/m-p/2461332#M14191</guid>
      <dc:creator>John D. Reaney</dc:creator>
      <dc:date>2000-11-03T15:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get tar to exclude mount points</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-tar-to-exclude-mount-points/m-p/2461333#M14192</link>
      <description>DO you have to use tar , can you use cpio &lt;BR /&gt;cd dir&lt;BR /&gt;find . -xdev -print | cpio -ovcdumB &amp;gt; /dev/rmt/??&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 03 Nov 2000 15:22:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-tar-to-exclude-mount-points/m-p/2461333#M14192</guid>
      <dc:creator>Devbinder Singh Marway</dc:creator>
      <dc:date>2000-11-03T15:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get tar to exclude mount points</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-tar-to-exclude-mount-points/m-p/2461334#M14193</link>
      <description>what command to extract then if is use cpio o</description>
      <pubDate>Fri, 03 Nov 2000 15:30:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-tar-to-exclude-mount-points/m-p/2461334#M14193</guid>
      <dc:creator>John D. Reaney</dc:creator>
      <dc:date>2000-11-03T15:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get tar to exclude mount points</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-tar-to-exclude-mount-points/m-p/2461335#M14194</link>
      <description>Or, if you want to copy the whole tree,&lt;BR /&gt;without crossing the mount point:&lt;BR /&gt;&lt;BR /&gt;find /home/sybase -type f -xdev | cpio -pdvum &lt;DESTINATION directory=""&gt;&lt;BR /&gt;&lt;BR /&gt;v is optional, as it gives verbose info on the files copied.&lt;BR /&gt;&lt;BR /&gt;&lt;/DESTINATION&gt;</description>
      <pubDate>Fri, 03 Nov 2000 16:08:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-tar-to-exclude-mount-points/m-p/2461335#M14194</guid>
      <dc:creator>Dan Hetzel</dc:creator>
      <dc:date>2000-11-03T16:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get tar to exclude mount points</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-tar-to-exclude-mount-points/m-p/2461336#M14195</link>
      <description>cd into / and issue cpio -ivcdumB &lt;BR /&gt;nb: &amp;lt; to read in &amp;gt; to send out &lt;BR /&gt;    i to restore   o to output / backup&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 03 Nov 2000 16:12:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-tar-to-exclude-mount-points/m-p/2461336#M14195</guid>
      <dc:creator>Devbinder Singh Marway</dc:creator>
      <dc:date>2000-11-03T16:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get tar to exclude mount points</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-tar-to-exclude-mount-points/m-p/2461337#M14196</link>
      <description>If you don't need to exchange these tapes with another site, why not use GNU tar. It can exclude directories specified on the command line (using the --exclude option), and has a host of other wonderful features. &lt;BR /&gt;&lt;BR /&gt;You can download a precompiled binary in SD depot format from a HP-UX Porting and Archive Center mirror in your neighborhood (like &lt;A href="http://hpux.cae.wisc.edu" target="_blank"&gt;http://hpux.cae.wisc.edu&lt;/A&gt; ). The documentation for GNU tar is very thorough, though you will need to install the 'texinfo' depot as well, as it is in 'texinfo' format. (A terse 'man' page is included as well, for quick reference.)</description>
      <pubDate>Fri, 03 Nov 2000 16:34:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-tar-to-exclude-mount-points/m-p/2461337#M14196</guid>
      <dc:creator>Kevin Ernst</dc:creator>
      <dc:date>2000-11-03T16:34:53Z</dc:date>
    </item>
  </channel>
</rss>

