Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] rsync script
Date: Fri, 21 Mar 2008 07:27:23
Message-Id: 200803210926.46936.alan.mckinnon@gmail.com
In Reply to: [gentoo-user] rsync script by Kaushal Shriyan
1 On Friday 21 March 2008, Kaushal Shriyan wrote:
2 > Hi
3 >
4 > MAILTO=kaushal@×××××××.com
5 > 0 18 * * * rsync -av /var/lib/mysql kaushal@host77:/var/lib/
6 >
7 > If i put this two lines in crontab it will run correctly,My
8 > requirement was to create a script, this script should indicate
9 > success or failures and the reason for failure
10
11 crontab will only send a mail is there is anyput to stdout. What output
12 do you get if you run the rsync manually?
13
14 Do you have any packages installed that can actually send the mail?
15
16
17
18 --
19 Alan McKinnon
20 alan dot mckinnon at gmail dot com
21
22 --
23 gentoo-user@l.g.o mailing list

Replies

Subject Author
Re: [gentoo-user] rsync script Kaushal Shriyan <kaushalshriyan@×××××.com>