Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Feb 2009 09:24:52 -0600
From:      Andrew Gould <andrewlylegould@gmail.com>
To:        Frank Shute <frank@shute.org.uk>, Jos Chrispijn <jos@webrz.net>,  FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Rsync | Push script
Message-ID:  <d356c5630902260724v6343398dw874098b5e555bd76@mail.gmail.com>
In-Reply-To: <20090226151410.GA94057@melon.esperance-linux.co.uk>
References:  <49A00445.8080703@webrz.net> <20090226151410.GA94057@melon.esperance-linux.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
>
> On Sat, Feb 21, 2009 at 02:40:21PM +0100, Jos Chrispijn wrote:
> >
> > Just having made a backup script that should take care of nocturnal
> > backup of my mySQL data from one server to my backup server.
> >
> > cd /backup
> > DATE=`date "+%d%m%y"`
> > DIR=backup.$DATE
> >
> > /letc/rc.d/mysql-server stop
>   ^^^^
> > rsync -avpog /var/db/mysql    //root@10.10.10.50:123/usr/backup/$DATE/
> > /letc/rc.d/mysql-server start
>   ^^^^
> >
> > It goes wrong when I run the rsync line; I run my backup thru port 123
> > (can be any portnumber).
> > 10.10.10.50 is backup server on which I want to logon as root; during
> > script run I will fill out root password myself.
> >
> > Can someone hint me in the right direction? rsync deamon is running.
> >
> > Jos Chrispijn
>

Doesn't rsync work via ssh by default?  The default configuration of sshd on
the backup server probably prevents external root users from accessing the
server.

Are you sure you want to run the backups as root?

Andrew Gould



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