public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] rsync script
@ 2008-03-21  6:52 Kaushal Shriyan
  2008-03-21  7:26 ` Alan McKinnon
  0 siblings, 1 reply; 8+ messages in thread
From: Kaushal Shriyan @ 2008-03-21  6:52 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 304 bytes --]

Hi

MAILTO=kaushal@example.com
0 18 * * * rsync -av /var/lib/mysql kaushal@host77:/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

[-- Attachment #2: Type: text/html, Size: 384 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [gentoo-user] rsync script
@ 2008-04-04 10:05 Kaushal Shriyan
  0 siblings, 0 replies; 8+ messages in thread
From: Kaushal Shriyan @ 2008-04-04 10:05 UTC (permalink / raw
  To: gentoo-user

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/ib_logfile1
Killed by signal 2.
rsync error: unexplained error (code 255) at rsync.c(276) [sender=2.6.9]

Any clue as what is happening

Thanks and Regards

Kaushal
-- 
gentoo-user@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-04-04 10:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-21  6:52 [gentoo-user] rsync script Kaushal Shriyan
2008-03-21  7:26 ` Alan McKinnon
2008-03-21  7:33   ` Kaushal Shriyan
2008-03-21  8:33     ` Collin Starkweather
2008-03-21  8:59       ` Kaushal Shriyan
2008-03-21  9:38         ` Collin Starkweather
2008-03-21 12:22     ` Alan McKinnon
  -- strict thread matches above, loose matches on Subject: below --
2008-04-04 10:05 Kaushal Shriyan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox