From owner-freebsd-questions Wed Dec 1 8:21:56 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mail.telestream.com (mail.telestream.com [205.238.4.5]) by hub.freebsd.org (Postfix) with ESMTP id 1572F15B09 for ; Wed, 1 Dec 1999 08:21:48 -0800 (PST) (envelope-from keith@mail.telestream.com) Received: from localhost (keith@localhost) by mail.telestream.com (8.9.3/8.9.3) with ESMTP id IAA23207; Wed, 1 Dec 1999 08:20:59 -0800 Date: Wed, 1 Dec 1999 08:20:59 -0800 (PST) From: To: Alfred Perlstein Cc: Sparky , "freebsd-questions@FreeBSD.ORG" Subject: Re: Backups In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I've been using ssh/scp to backup 4 of my machines to a central server for some time now.. If you are interested in the scripts let me know. You can pass the auth information quite easily with expect. Keith On Wed, 1 Dec 1999, Alfred Perlstein wrote: > On Wed, 1 Dec 1999, Sparky wrote: > > > Hello.... > > > > Can anyone help me? > > I want to do backups of 4 machines to a backup server ( all running > > Unix ) > > > > machine 1 LINUX REDHAT 6 > > machine 2 SOLARIS 2.6 > > machine 3 FREEBSD > > machine 4 LINUX REDHAT 6 > > backup FREEBSD > > > > The idea is to use the crontab daemon to scp the machines necessary > > files to the backup server, > > and then for the backup server to....well of course back them up. > > > > The first question is : > > > > 1) Is this way correct. > > 2) How do I get the backup to accecpt scp connections without a > > password from only those machines. > > 3) How to set up the crontab file on the machines to perform the > > sending tasks. > > > > I have tried to edit the sshd config files....but no luck. > > I have also tried some tests with crontab file ..... no luck. > > > > Note: You might wonder why I am asking these questions......well > > actually I am new to UNIX aprox 4 weeks. So all the advice would be > > appreciated. > > Actually this is a side project i've been working on in my spare > time, meaning I haven't got passed the thinking about it stage. :) > > The way I was going to do it is remarkably similar, the problem > you're having with ssh is that it won't take a password from > stdin. A trick I came up with is to start an ssh-agent, ssh-add > which enters keys into the agent will take a passphrase on stdin > if you pass it a -p flag. > > You can then stick a generated key into the remote backup user's > $HOME/.ssh/authorized_keys. > > Read up on ssh-agent it should be a good start. > > -Alfred > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message