From owner-freebsd-questions Tue Sep 4 21:47:26 2001 Delivered-To: freebsd-questions@freebsd.org Received: from smtp1.sentex.ca (smtp1.sentex.ca [199.212.134.4]) by hub.freebsd.org (Postfix) with ESMTP id 6F4ED37B405 for ; Tue, 4 Sep 2001 21:47:23 -0700 (PDT) Received: from chimp.simianscience.com (cage.simianscience.com [64.7.134.1]) by smtp1.sentex.ca (8.11.6/8.11.6) with SMTP id f854lLX22910; Wed, 5 Sep 2001 00:47:21 -0400 (EDT) (envelope-from mike@sentex.net) From: Mike Tancsa To: philip@adhesivemedia.com (Philip Hallstrom) Cc: questions@freebsd.org Subject: Re: Unattended remote backups via ssh??? Date: Wed, 05 Sep 2001 00:47:20 -0400 Message-ID: <05bbptgo0ovdjb9qg4k93l25i8i50a5rpf@4ax.com> References: In-Reply-To: X-Mailer: Forte Agent 1.8/32.548 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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