Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 05 Sep 2001 00:47:20 -0400
From:      Mike Tancsa <mike@sentex.net>
To:        philip@adhesivemedia.com (Philip Hallstrom)
Cc:        questions@freebsd.org
Subject:   Re: Unattended remote backups via ssh???
Message-ID:  <05bbptgo0ovdjb9qg4k93l25i8i50a5rpf@4ax.com>
In-Reply-To: <SEN.999646686.811908187@news.sentex.net>
References:  <SEN.999646686.811908187@news.sentex.net>

next in thread | previous in thread | raw e-mail | index | archive | help

On 4 Sep 2001 19:38:07 -0400, in sentex.lists.freebsd.questions you =
wrote:

>Hi -
>	I was hoping someone could point me in the general direction of a
>tutorial that will help me with the following scenerio which must be
>common, but I can't seem to find the answer today...
>
>I have a server with a tape drive behind a firewall.  I have several
>machines outside the firewall that need backing up.  When they were all
>behind the firewall I would use rsync to mirror the files I wanted =
backed
>up to the server and then dump that to tape.

Use dump via ssh.=20

/sbin/dump -0 -b 600 -uanf - / |gzip -9 | ssh -2 -c blowfish
safepriv@backuphost.example.com dd =
of=3D/backup1/subdir/dump-host-root-0.gz

will dump the root partition to your backup maching into a file.

/sbin/dump -0 -b 600 -uanf - / | ssh -2 -c blowfish
tapeprivuser@backuphost.example.com dd of=3D/dev/nrsa0

will dump it to tape.



>
>I also don't want to have to be around when I do it to type in a
>password...

use RSA authentication.

on machineb.example.com as useridB
ssh-keygen -d


on machineA as useridA
ssh-keygen -d
scp ~useridA/.ssh/id_dsa.pub
useridB@machineb.example.com:/usr/home/useridB/.ssh/authorized_keys2

You will be prompted for a password at this point.

now, try=20
ssh -2 useridB@machineb.example.com

no password needed...

	---Mike
Mike Tancsa  (mdtancsa@sentex.net)	=09
Sentex Communications Corp,   	=09
Waterloo, Ontario, Canada
"Given enough time, 100 monkeys on 100 routers=20
could setup a national IP network." (KDW2)

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?05bbptgo0ovdjb9qg4k93l25i8i50a5rpf>