Re: Writing to remote tape
Jeff Ross wrote: > Since I posted I've found rshd and started it through inetd and now I'm > just getting permission denied errors. > > Perhaps the better question is how can I make that work over ssh? Set RSH=ssh in the environment. -- Christian "naddy" Weisgerber na...@mips.inka.de
Re: Writing to remote tape
On 01/07/11 15:08, Ted Unangst wrote: On Fri, Jan 7, 2011 at 5:00 PM, Jeff Ross wrote: Since I posted I've found rshd and started it through inetd and now I'm just getting permission denied errors. Perhaps the better question is how can I make that work over ssh? I believe exporting RSH=ssh should work. Yes, indeed it does. Thanks Ted! Jeff !DSPAM:4d278f09237972063685328!
Re: Writing to remote tape
On Fri, Jan 7, 2011 at 5:00 PM, Jeff Ross wrote: > Since I posted I've found rshd and started it through inetd and now I'm just > getting permission denied errors. > > Perhaps the better question is how can I make that work over ssh? I believe exporting RSH=ssh should work.
Re: Writing to remote tape
On 01/07/11 14:44, Johan Beisser wrote: I prefer to tar(1)... That's all fine and well but doesn't address the question at all. I have a learning story about how easy it is to type tar "c"zvf instead of tar "x"zvf and in a split second wipe out a huge tar backup file but I'll let you make that one for yourself. Contrast that to "dump" and "restore" and I don't care how late it is or how long you've been rebuilding a server, you are not likely to confuse the two. Since I posted I've found rshd and started it through inetd and now I'm just getting permission denied errors. Perhaps the better question is how can I make that work over ssh? Thanks, Jeff On 1/7/11, Jeff Ross wrote: Hi, I have 2 servers that get backed up to tape. I was scping the daily dump files to the server with the tape attached but now I no longer have hard disk room to do that. So I read the man page for rdump/dump and that led me to rmt but I have been unable to make this work. It fails with a connection refused error, and I could not glean from the rmt manpage why. jr...@dukkha:/home/jross $ sudo sh -x /etc/scripts/tape_backup.sh Password: + dump -0a -f nirvana.internal:/dev/nrst0 /dev/sd0a nirvana.internal: Connection refused + exit nirvana does have pf enabled, but it uses a pass all ruleset. So I next wrote a quick shell script that pushes the dump data across the lan with ssh and uses dd to write it to the tape drive. #!/bin/sh #section 1 --/ dump -0a -f - /dev/sd0a | ssh nirvana "dd of=/dev/nrst0 bs=1024" #section 2 --/cvs dump -0a -f - /dev/sd1g | ssh nirvana "dd of=/dev/nrst0 bs=1024" #section 3 --/home dump -0a -f - /dev/sd0k | ssh nirvana "dd of=/dev/nrst0 bs=1024" #section 4 --/profiles dump -0a -f - /dev/sd1b | ssh nirvana "dd of=/dev/nrst0 bs=1024" #section 5 --/shared dump -0a -f - /dev/sd1d | ssh nirvana "dd of=/dev/nrst0 bs=1024" #section 6 --/stars dump -0a -f - /dev/sd1e | ssh nirvana "dd of=/dev/nrst0 bs=1024" #section 7 --/bookkeeping dump -0a -f - /dev/sd0n | ssh nirvana "dd of=/dev/nrst0 bs=1024" #done ssh nirvana mt rewoffl After a little trial and error this works, with one caveat--when a tape fills up the section it is working on aborts rather than calling for the second tape as a local dump-to-tape would. I can manually split this into two sections but that won't scale. Thanks in advance for any cluesticks or hints! Jeff Ross
Re: Writing to remote tape
I prefer to tar(1)... On 1/7/11, Jeff Ross wrote: > Hi, > > I have 2 servers that get backed up to tape. I was scping the daily > dump files to the server with the tape attached but now I no longer have > hard disk room to do that. > > So I read the man page for rdump/dump and that led me to rmt but I have > been unable to make this work. It fails with a connection refused > error, and I could not glean from the rmt manpage why. > > jr...@dukkha:/home/jross $ sudo sh -x /etc/scripts/tape_backup.sh > Password: > + dump -0a -f nirvana.internal:/dev/nrst0 /dev/sd0a > nirvana.internal: Connection refused > + exit > > nirvana does have pf enabled, but it uses a pass all ruleset. > > So I next wrote a quick shell script that pushes the dump data across > the lan with ssh and uses dd to write it to the tape drive. > > #!/bin/sh > #section 1 --/ > dump -0a -f - /dev/sd0a | ssh nirvana "dd of=/dev/nrst0 bs=1024" > #section 2 --/cvs > dump -0a -f - /dev/sd1g | ssh nirvana "dd of=/dev/nrst0 bs=1024" > #section 3 --/home > dump -0a -f - /dev/sd0k | ssh nirvana "dd of=/dev/nrst0 bs=1024" > #section 4 --/profiles > dump -0a -f - /dev/sd1b | ssh nirvana "dd of=/dev/nrst0 bs=1024" > #section 5 --/shared > dump -0a -f - /dev/sd1d | ssh nirvana "dd of=/dev/nrst0 bs=1024" > #section 6 --/stars > dump -0a -f - /dev/sd1e | ssh nirvana "dd of=/dev/nrst0 bs=1024" > #section 7 --/bookkeeping > dump -0a -f - /dev/sd0n | ssh nirvana "dd of=/dev/nrst0 bs=1024" > #done > ssh nirvana mt rewoffl > > After a little trial and error this works, with one caveat--when a tape > fills up the section it is working on aborts rather than calling for the > second tape as a local dump-to-tape would. > > I can manually split this into two sections but that won't scale. > > Thanks in advance for any cluesticks or hints! > > Jeff Ross > > -- Sent from my mobile device
Writing to remote tape
Hi, I have 2 servers that get backed up to tape. I was scping the daily dump files to the server with the tape attached but now I no longer have hard disk room to do that. So I read the man page for rdump/dump and that led me to rmt but I have been unable to make this work. It fails with a connection refused error, and I could not glean from the rmt manpage why. jr...@dukkha:/home/jross $ sudo sh -x /etc/scripts/tape_backup.sh Password: + dump -0a -f nirvana.internal:/dev/nrst0 /dev/sd0a nirvana.internal: Connection refused + exit nirvana does have pf enabled, but it uses a pass all ruleset. So I next wrote a quick shell script that pushes the dump data across the lan with ssh and uses dd to write it to the tape drive. #!/bin/sh #section 1 --/ dump -0a -f - /dev/sd0a | ssh nirvana "dd of=/dev/nrst0 bs=1024" #section 2 --/cvs dump -0a -f - /dev/sd1g | ssh nirvana "dd of=/dev/nrst0 bs=1024" #section 3 --/home dump -0a -f - /dev/sd0k | ssh nirvana "dd of=/dev/nrst0 bs=1024" #section 4 --/profiles dump -0a -f - /dev/sd1b | ssh nirvana "dd of=/dev/nrst0 bs=1024" #section 5 --/shared dump -0a -f - /dev/sd1d | ssh nirvana "dd of=/dev/nrst0 bs=1024" #section 6 --/stars dump -0a -f - /dev/sd1e | ssh nirvana "dd of=/dev/nrst0 bs=1024" #section 7 --/bookkeeping dump -0a -f - /dev/sd0n | ssh nirvana "dd of=/dev/nrst0 bs=1024" #done ssh nirvana mt rewoffl After a little trial and error this works, with one caveat--when a tape fills up the section it is working on aborts rather than calling for the second tape as a local dump-to-tape would. I can manually split this into two sections but that won't scale. Thanks in advance for any cluesticks or hints! Jeff Ross