* problem with GNU tar @ 1997-12-09 5:00 Steve Imber 1997-12-09 5:00 ` Paul Eggert 1997-12-09 5:00 ` Nick Maclaren 0 siblings, 2 replies; 9+ messages in thread From: Steve Imber @ 1997-12-09 5:00 UTC (permalink / raw) Hi all I am having a problem that you may know something about. I attempting to use gnu tar for remote backups to a tape host. Gnu tar will support "user@hostname:/dev/tapedevice" as a valid file to write the archive to. I have set up the "r" commands to work. The tape host is a DEC alpha (DEC Unix 4.0C). When I use gnu tar from a linux box the dump proceeds smoothly but when I use tar from a SCO box, the tape hosts wants a name and password for the tar command. When I try to run this from a script, I get this in the daemon.log file Dec 9 17:09:07 donald rexecd[16673]: REXECD FAILURE:SIA init Dec 9 18:05:59 donald rexecd[16885]: REXECD FAILURE:SIA init When I try a command using a rsh from the remote SCO host, no problem, the command proceeds. Anyone got any ideas as to how I can fix this so I can use scripts to do my remote backups?? Thanks, Steve. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: problem with GNU tar 1997-12-09 5:00 problem with GNU tar Steve Imber @ 1997-12-09 5:00 ` Paul Eggert 1997-12-11 5:00 ` Walter Harms 1997-12-15 5:00 ` dkeisen 1997-12-09 5:00 ` Nick Maclaren 1 sibling, 2 replies; 9+ messages in thread From: Paul Eggert @ 1997-12-09 5:00 UTC (permalink / raw) s.imber@qut.edu.au (Steve Imber) writes: >I attempting to use gnu tar for remote backups to a tape host. >Gnu tar will support "user@hostname:/dev/tapedevice" as a >valid file to write the archive to. I have set up the "r" commands >to work. The tape host is a DEC alpha (DEC Unix 4.0C). >When I use gnu tar from a linux box the dump proceeds smoothly >but when I use tar from a SCO box, Which tar? SCO tar or GNU tar? Do you have GNU tar rmt running on the DEC alpha, or are you using the DEC alpha rmt? >the tape hosts wants a name and password for the tar command. >When I try to run this from a script, I get this in the daemon.log file >Dec 9 17:09:07 donald rexecd[16673]: REXECD FAILURE:SIA init >Dec 9 18:05:59 donald rexecd[16885]: REXECD FAILURE:SIA init Which machine is donald? You don't give much detail, but I'd guess that you configured GNU tar incorrectly on your SCO box, and pointed it at the wrong rsh, so that it thinks rsh doesn't work and falls back on rexec instead. rexec is generally a bad idea on most hosts (though I don't know SCO well -- perhaps it's the only thing that works there -- you may need to consult a local guru on this). What's the absolute path name of rsh on your SCO box? Be careful that you have the correct 'rsh' -- you want the remote shell, not the restricted shell. Look for REMOTE_SHELL in the makefiles, and make sure it's correct. Also, make sure that HAVE_NETDB_H is not defined in the .h files. >When I try a command using a rsh from the remote SCO host, no problem, >the command proceeds. Does it work if you rsh as root? Some rmt's require this. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: problem with GNU tar 1997-12-09 5:00 ` Paul Eggert @ 1997-12-11 5:00 ` Walter Harms 1997-12-11 5:00 ` Paul Eggert 1997-12-15 5:00 ` dkeisen 1 sibling, 1 reply; 9+ messages in thread From: Walter Harms @ 1997-12-11 5:00 UTC (permalink / raw) eggert@twinsun.com (Paul Eggert) writes: >s.imber@qut.edu.au (Steve Imber) writes: >>I attempting to use gnu tar for remote backups to a tape host. >>Gnu tar will support "user@hostname:/dev/tapedevice" as a >>valid file to write the archive to. I have set up the "r" commands >>to work. The tape host is a DEC alpha (DEC Unix 4.0C). >>When I use gnu tar from a linux box the dump proceeds smoothly >>but when I use tar from a SCO box, >Which tar? SCO tar or GNU tar? >Do you have GNU tar rmt running on the DEC alpha, >or are you using the DEC alpha rmt? >>the tape hosts wants a name and password for the tar command. >>When I try to run this from a script, I get this in the daemon.log file >>Dec 9 17:09:07 donald rexecd[16673]: REXECD FAILURE:SIA init >>Dec 9 18:05:59 donald rexecd[16885]: REXECD FAILURE:SIA init >Which machine is donald? >You don't give much detail, but I'd guess that you configured GNU tar >incorrectly on your SCO box, and pointed it at the wrong rsh, so that >it thinks rsh doesn't work and falls back on rexec instead. rexec is >generally a bad idea on most hosts (though I don't know SCO well -- >perhaps it's the only thing that works there -- you may need to consult >a local guru on this). >What's the absolute path name of rsh on your SCO box? >Be careful that you have the correct 'rsh' -- you want >the remote shell, not the restricted shell. >Look for REMOTE_SHELL in the makefiles, and make sure it's correct. >Also, make sure that HAVE_NETDB_H is not defined in the .h files. >>When I try a command using a rsh from the remote SCO host, no problem, >>the command proceeds. >Does it work if you rsh as root? Some rmt's require this. the problem is SCO i have used tar from someplattforms but for some odd reason it breaks on SCO. I traced it down to a read() statement but had no idea what caused the problem. the system documentation doesnt give any clue. walter -- ----- "This is not my planet, I didn't choose to be here, I don't want to get involved, just get me out of here, and get me to a party with people I can relate to!" ----- ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: problem with GNU tar 1997-12-11 5:00 ` Walter Harms @ 1997-12-11 5:00 ` Paul Eggert 0 siblings, 0 replies; 9+ messages in thread From: Paul Eggert @ 1997-12-11 5:00 UTC (permalink / raw) "Walter Harms" <Walter.Harms@Informatik.Uni-Oldenburg.DE> writes: > the problem is SCO i have used tar from someplattforms but > for some odd reason it breaks on SCO. I traced it down to > a read() statement but had no idea what caused the problem. > the system documentation doesnt give any clue. Which read() statement? What does the read() statement return? If you describe the symptoms and environment more precisely, perhaps someone can help. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: problem with GNU tar 1997-12-09 5:00 ` Paul Eggert 1997-12-11 5:00 ` Walter Harms @ 1997-12-15 5:00 ` dkeisen 1 sibling, 0 replies; 9+ messages in thread From: dkeisen @ 1997-12-15 5:00 UTC (permalink / raw) In article <66l4bq$bb4$1@shade.twinsun.com>, Paul Eggert <eggert@twinsun.com> wrote: > >What's the absolute path name of rsh on your SCO box? On SCO, rsh is spelled rcmd. -- Dave Eisen Sequoia Peripherals: (650) 967-5644 dkeisen@netcom.com FAX: (650) 967-5648 There's something in my library to offend everybody. --- Washington Coalition Against Censorship ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: problem with GNU tar 1997-12-09 5:00 problem with GNU tar Steve Imber 1997-12-09 5:00 ` Paul Eggert @ 1997-12-09 5:00 ` Nick Maclaren 1997-12-10 5:00 ` Alexey Pushkin 1997-12-16 5:00 ` Jonathan Thornburg 1 sibling, 2 replies; 9+ messages in thread From: Nick Maclaren @ 1997-12-09 5:00 UTC (permalink / raw) In article <66khr9$3io$1@dove.qut.edu.au>, Steve Imber <s.imber@qut.edu.au> wrote: > >I attempting to use gnu tar for remote backups to a tape host. > >Anyone got any ideas as to how I can fix this so I can use scripts to do >my remote backups?? Yes. Don't use GNU tar. The kindest description of that program is that it got cancerous featuritis some time ago, and should be put down. Write a script that uses a more reliable tar and remsh/rexec. If your script goes wrong, you have some chance of debugging it. Nick Maclaren, University of Cambridge Computer Laboratory, New Museums Site, Pembroke Street, Cambridge CB2 3QG, England. Email: nmm1@cam.ac.uk Tel.: +44 1223 334761 Fax: +44 1223 334679 ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: problem with GNU tar 1997-12-09 5:00 ` Nick Maclaren @ 1997-12-10 5:00 ` Alexey Pushkin 1997-12-16 5:00 ` Jonathan Thornburg 1 sibling, 0 replies; 9+ messages in thread From: Alexey Pushkin @ 1997-12-10 5:00 UTC (permalink / raw) > Yes. Don't use GNU tar. The kindest description of that program is that > it got cancerous featuritis some time ago, and should be put down. ??? -- Alexey Pushkin tel: +46 (70) 653 78 01 mailto:pushkin@matfys.lth.se fax: +46 (46) 222 44 16 ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: problem with GNU tar 1997-12-09 5:00 ` Nick Maclaren 1997-12-10 5:00 ` Alexey Pushkin @ 1997-12-16 5:00 ` Jonathan Thornburg 1997-12-16 5:00 ` Nick Maclaren 1 sibling, 1 reply; 9+ messages in thread From: Jonathan Thornburg @ 1997-12-16 5:00 UTC (permalink / raw) ** This article is *NOT* an attempt to start a flame war. I "just" ** want to rebut (more accurately strongly disagree with) some comments ** Nick Maclaren recently posted here. ** ** If you post followups, please trim the Newsgroups: list. While ** the relative merits of different tar programs may be a worthy ** topic for further debate, I don't think it belongs in OS-specific ** newsgroups. In article <66kl8h$pr7$1@lyra.csx.cam.ac.uk>, Nick Maclaren <nmm1@cus.cam.ac.uk> wrote: >Don't use GNU tar. The kindest description of that program is that >it got cancerous featuritis some time ago, and should be put down. Without getting into a blow-by-blow code review of GNU vs other tars, I'd like to strongly disagree with Nick's advice. Nick is right insofar as a lot of the GNU tar source code is ugly, really ugly. But it works, and it works well. IMHO (and I think many knowledgable users would share MHOs) GNU tar ranks at the top of the tars: Nick may not need some of the fancier options, but some of us *do*; the code is battle-tested; it runs on just about every Unix flavor in the known universe (and even some non-Unix OSs); the documentation is light-years ahead of that for any other tar I've seen; and if you're a serious user, the support on the tar-forum and info-tar (I think that's the right name) mailing lists is *superb*. ["support" as in bug fixes, workarounds, and explanations, not to mention preleases of improved versions. I.e. all the things commercial vendors charge mega$ for pale clones of.] And oh yes... the price and availability are everything I could want, and if RTFM still leaves me wondering about some subtlety of how it works, I can RTFS. In the 1991 LISA proceedings, Elizabeth Zwicky reported on a torture-test of a number of different backup programs, including GNU tar 1.10, a half- dozen or so other tar programs, and another half-dozen or so assorted dump, pax, find|cpio, afio, and even a find2perl system. She created a pathological file system containing - a file with a large hole in it - files with funny characters in their file names - 1025 hard links to the same file - 2911 hard links to different files - symbolic links to long names - symbolic links to names with funny characters in them - a named pipe - a device - a file that becomes a directory in the middle of being backed up (changed by a concurrently running process) and other assorted nasties. She then turned all the backup programs loose and watched how they behaved. Her paper's subtitle is (alas) pretty self-explanatory: "Things You Ought to Know But Probably Would Rather Not". Anyone seriously interested in backup software should read the full paper, but for present purposes I'll just note that GNU tar generally did better than most other tars, and the current GNU tar (1.12, I believe) fixes most of the problems she found. Reference: Elizabeth D. Zwicky "Torture-testing Backup and Archive Programs: Things You Ought to Know But Probably Would Rather Not" pp.181--189 in USENIX Large Installation Systems Administration (LISA) V conference proceedings, Sept 30 -- Oct 3, 1991, San Diego, California, USA, no editor or ISBN shown -- -- Jonathan Thornburg <bkis@island.net> (personal E-mail) U of British Columbia / Physics Dept / <thornbur@theory.physics.ubc.ca> "The first strike in the American Colonies was in 1776 in Philadelphia, when [...] carpenters demanded a 72-hour week." -- Anatole Beck ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: problem with GNU tar 1997-12-16 5:00 ` Jonathan Thornburg @ 1997-12-16 5:00 ` Nick Maclaren 0 siblings, 0 replies; 9+ messages in thread From: Nick Maclaren @ 1997-12-16 5:00 UTC (permalink / raw) In article <676npv$4uu$1@nanaimo.island.net>, Jonathan Thornburg <bkis@nanaimo.island.net> wrote: >** This article is *NOT* an attempt to start a flame war. I "just" >** want to rebut (more accurately strongly disagree with) some comments >** Nick Maclaren recently posted here. >** >** If you post followups, please trim the Newsgroups: list. While >** the relative merits of different tar programs may be a worthy >** topic for further debate, I don't think it belongs in OS-specific >** newsgroups. Regrettably, my points are relevant to most of the newsgroups, and I wish to point out some very serious errors in the previous posting. >In article <66kl8h$pr7$1@lyra.csx.cam.ac.uk>, >Nick Maclaren <nmm1@cus.cam.ac.uk> wrote: >>Don't use GNU tar. The kindest description of that program is that >>it got cancerous featuritis some time ago, and should be put down. > >Without getting into a blow-by-blow code review of GNU vs other tars, I'd >like to strongly disagree with Nick's advice. Nick is right insofar as >a lot of the GNU tar source code is ugly, really ugly. But it works, >and it works well. IMHO (and I think many knowledgable users would >share MHOs) GNU tar ranks at the top of the tars: There are two reasons why not: 1) If you ever try to port it to a Unix it has never been ported to before, it is likely to be hell. I tried, on one system that was a variant of HP-UX and other that was an OSF/1 derivative, and decided that it was a waste of time. So I used Gilmore tar. 2) There were (and probably still are) some VERY serious security flaws in GNU tar. It makes assumptions that all systems work the way it expects; if they don't, you may well end up with strange ownerships, groups or permissions (often without a diagnostic), and possibly even worse problems. Nick Maclaren, University of Cambridge Computer Laboratory, New Museums Site, Pembroke Street, Cambridge CB2 3QG, England. Email: nmm1@cam.ac.uk Tel.: +44 1223 334761 Fax: +44 1223 334679 ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~1997-12-16 5:00 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 1997-12-09 5:00 problem with GNU tar Steve Imber 1997-12-09 5:00 ` Paul Eggert 1997-12-11 5:00 ` Walter Harms 1997-12-11 5:00 ` Paul Eggert 1997-12-15 5:00 ` dkeisen 1997-12-09 5:00 ` Nick Maclaren 1997-12-10 5:00 ` Alexey Pushkin 1997-12-16 5:00 ` Jonathan Thornburg 1997-12-16 5:00 ` Nick Maclaren
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox