I have an rsync copy command as follows:-
rsync --remove-source-files cheddar.halon.org.uk:odin/tempdata ~/odin
This copies tempdata from the remote system to the local system and also removes it from the remote. The file tempdata is put there by a cron job and I want to process the data once only and then wait for new data.
This is fine as long as the cron job putting data onto the remote system runs every hour and the local rsync also runs every hour. However if the remote cron job fails then, although I don't process the data again, I get a "No such file or directory" from rsync.
I suppose I could just throw the error message away but that would throw other error messages away too which might be important ones.
Any ideas?