Timestamp of last_sync and last_try is expressed in Unix time format [0] [1].
In your script, you could store the timestamp before you start the snapshot with schedule_now , and when the snapshot is done check if last_sync value is greater than the one you've stored. Checking fail_count would...