[gentoo-user] rsync script

2008-04-04 Thread Kaushal Shriyan
hi I have the script http://pastebin.com/d4b062d28 and the roots cron entry are as below 30 2 * * * su sms /usr/local/bin/testrsync_mysql.sh I am getting the below error building file list ... rsync: opendir "/var/lib/mysql/wordpress" failed: Permission denied (13) done mysql/ib_logfile0 mysql/

Re: [gentoo-user] rsync script

2008-03-21 Thread Alan McKinnon
On Friday 21 March 2008, Kaushal Shriyan wrote: > On Fri, Mar 21, 2008 at 12:56 PM, Alan McKinnon > <[EMAIL PROTECTED]> > > wrote: > > On Friday 21 March 2008, Kaushal Shriyan wrote: > > > Hi > > > > > > [EMAIL PROTECTED] > > > 0 18 * * * rsync -av /var/lib/mysql [EMAIL PROTECTED]:/var/lib/ > > > >

Re: [gentoo-user] rsync script

2008-03-21 Thread Collin Starkweather
Quoting Kaushal Shriyan <[EMAIL PROTECTED]>: Correct me if i am wrong please. I want to understand your script step 1 : put the above code in text file and name it as rsync-host77.sh in the folder /home/kaushal in the machine where rsync command will execute step 2 : cd /home/kaushal $crontab

Re: [gentoo-user] rsync script

2008-03-21 Thread Kaushal Shriyan
On Fri, Mar 21, 2008 at 2:03 PM, Collin Starkweather < [EMAIL PROTECTED]> wrote: > Quoting Kaushal Shriyan <[EMAIL PROTECTED]>: > > > On Fri, Mar 21, 2008 at 12:56 PM, Alan McKinnon <[EMAIL PROTECTED] > > > > wrote: > > > >> On Friday 21 March 2008, Kaushal Shriyan wrote: > >> > Hi > >> > > >> > [

Re: [gentoo-user] rsync script

2008-03-21 Thread Collin Starkweather
Quoting Kaushal Shriyan <[EMAIL PROTECTED]>: On Fri, Mar 21, 2008 at 12:56 PM, Alan McKinnon <[EMAIL PROTECTED]> wrote: On Friday 21 March 2008, Kaushal Shriyan wrote: > Hi > > [EMAIL PROTECTED] > 0 18 * * * rsync -av /var/lib/mysql [EMAIL PROTECTED]:/var/lib/ Run rsync through a script that

Re: [gentoo-user] rsync script

2008-03-21 Thread Kaushal Shriyan
On Fri, Mar 21, 2008 at 12:56 PM, Alan McKinnon <[EMAIL PROTECTED]> wrote: > On Friday 21 March 2008, Kaushal Shriyan wrote: > > Hi > > > > [EMAIL PROTECTED] > > 0 18 * * * rsync -av /var/lib/mysql [EMAIL PROTECTED]:/var/lib/ > > > > If i put this two lines in crontab it will run correctly,My > >

Re: [gentoo-user] rsync script

2008-03-21 Thread Alan McKinnon
On Friday 21 March 2008, Kaushal Shriyan wrote: > Hi > > [EMAIL PROTECTED] > 0 18 * * * rsync -av /var/lib/mysql [EMAIL PROTECTED]:/var/lib/ > > If i put this two lines in crontab it will run correctly,My > requirement was to create a script, this script should indicate > success or failures and th

[gentoo-user] rsync script

2008-03-20 Thread Kaushal Shriyan
Hi [EMAIL PROTECTED] 0 18 * * * rsync -av /var/lib/mysql [EMAIL PROTECTED]:/var/lib/ If i put this two lines in crontab it will run correctly,My requirement was to create a script, this script should indicate success or failures and the reason for failure Any ideas Thanks and Regards Kaushal