[96225] in RedHat Linux List
Re: remote backup using ssh/dump
daemon@ATHENA.MIT.EDU (Kevin Mernick)
Sun Oct 25 18:49:04 1998
From: Kevin Mernick <Kevin_Mernick@brown.edu>
To: redhat-list@redhat.com
cc: sasha@forum.swarthmore.edu, staff@forum.swarthmore.edu
In-reply-to: Your message of "Thu, 22 Oct 1998 11:44:46 EDT."
<199810221544.LAA10664@forum.swarthmore.edu>
Date: Sun, 25 Oct 1998 18:43:58 -0500
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
Alex Vorobiev wrote:
> - RH5.1 on client/server
> - dump/restore on client/server
> - server's root has passwordless ssh access to client root
>
> my goal is to dump client's disks to server's tape. i would like to
> avoid using the operator scheme, where i would have to
> change permissions on rmt/rrestore, as well as disk devices (which is
> necessary to enable the client operator can do remote dump to server).
>
> as root@server, i do the following:
>
> SERVER# (ssh CLIENT /sbin/dump 0uBf 4000000 - / ) | dd of=/dev/nst0 bs=1024
>
> dump completes successfully. i can't restore, however:
...[error messages]...
> am i using incorrect block size, or is dd mangling the dump stream?
>
> alternative solutions welcome.
I used a similar method a couple of years ago to setup backups for 3
servers (only one of which had a tape drive). Instead of dump/restore
we used tar. On the machine with the tape drive (foo), we added a user
named backup, and allowed root on the other two machines (bar and baz)
to ssh to that account without a password. We also added a tape group
on foo with backup in it, and set the permissions on the tape device to
660 (root:tape).
To backup bar we did:
bar:/># tar cf - / | (ssh foo -l backup dd of=/dev/st0)
(or something like that, it's been two years)
To restore we did:
bar:/restore># (ssh foo -l backup dd if=/dev/st0 ) | tar xf - <filelist>
where <filelist> is the list of files/directories we wanted to restore.
> --sasha/sasha@forum.swarthmore.edu
_________________________________________________________________________
Kevin Mernick
Kevin_Mernick@Brown.edu / kmernick@mbhs.edu
"You certainly usually find something, if you look, but it is not always
quite the something you were after." --J.R.R. Tolkien
_________________________________________________________________________
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-list-request@redhat.com with
"unsubscribe" as the Subject.