Re: Rsync | Push script

2009-02-26 Thread Andrew Gould
> > 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-

Re: Rsync | Push script

2009-02-26 Thread Frank Shute
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

Re: Rsync | Push script

2009-02-21 Thread Polytropon
Just a small note which has nothing to do with the actual rsync problem: On Sat, 21 Feb 2009 14:40:21 +0100, Jos Chrispijn wrote: > DATE=`date "+%d%m%y"` In order to be able to sourt your backups by date, you could use the form DATE=`date "+%y%m%d"` or DATE=`date "+%Y%m%d"`

Re: Rsync | Push script

2009-02-21 Thread Roland Smith
On Sat, Feb 21, 2009 at 06:14:27PM +0100, Jos Chrispijn wrote: > Sorry for the confusion; the problem is in the rsync line: > > rsync -avpog /var/db/mysql //r...@10.10.10.50:123/usr/backup/ > > Running this line causes rsync to say: > Unexpected remote arg: r...@10.10.10.50:123 > rsync error: syn

Re: Rsync | Push script

2009-02-21 Thread Jos Chrispijn
Sorry for the confusion; the problem is in the rsync line: rsync -avpog /var/db/mysql //r...@10.10.10.50:123/usr/backup/ Running this line causes rsync to say: Unexpected remote arg: r...@10.10.10.50:123 rsync error: syntax or usage error (code 1) at main.c(1202) [sender=3.0.5] On the server th

Re: Rsync | Push script

2009-02-21 Thread Bill Moran
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//r...@10.10.10.

Rsync | Push script

2009-02-21 Thread Jos Chrispijn
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//r...@10.10.10.50:123/usr/backup/$DATE/ /letc/rc.d/mysql