Does anyone know how to check last replication date (found ls on forum) and stop replication if have not replicated in 30 days - having problem of old replicas being reintroduced into database after deletion stubs have been purged.
we have automatic replication set on laptops - need way for it to check replication date and do not proceed if it’s been a long time since successfully replicated.
Subject: RE: DISABLE REPLICATION IF HAVE NOT REPLICATED IN LONG TIME
The closest method I have found so far is to look at the local database’s replication history. If I find that it has not been replicated in over 25 days I change the local database’s REPLICA ID to a value that is not on any of our servers. Since the replica id no longer matches the server’s replica id, the replication fails. I run this code on the Notes client in a custom home page’s Postopen event. This event also starts a Notestimer to run the code 4 times a day.
This method still has problems. The user can still make updates to the local database, therefore their updates will never replicate. Also, I have not found a good way to know when a database has had the replica id changed. (Email sort of works. If the user is not replicating at all, I do not get the email.)
The code to look at replication history and change replica ids can be found in other posts in this forum.