Re: rsync script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




One suggestion:

Wrap the rsync command and error checking in another script that you call from cron, the new script checks for errors, if none, output nothing, else output the error message, that way you only get the mail if there was an error.

Albert.

Kaushal Shriyan wrote:
Hi

MAILTO=kaushal@xxxxxxxxxxx <mailto:kaushal@xxxxxxxxxxx>
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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux