How to ignore error 24 or mask it out in bash rsync script

Mikolaj Kucharski mikolaj at
Mon Jan 31 14:59:31 MST 2011

On Mon, Jan 31, 2011 at 01:35:20PM +0100, Mi wrote:
> Hi,
> My cron backup scripts often send me mails because of error 24 (Partial transfer due to vanished source files). However, this is normal when backing up user homes with IMAP folders. So I would like to suppress only this particular error.
> I have not found an rsync option to suppress this error. Is there some way to filter this out?

Didn't test below code, but you should get the idea..


rsync ... # your backup options go here

case $? in
		exit 0 # success
		exit $? # error

best regards

More information about the rsync mailing list