I have a headless device that I use to mirror some backups. It has a Receive Only folder and the syncing works as expected.
If that device somehow does get some changes – I accidentally delete or change something – I want the changes to get reverted from the authoritative source. I can do that with “Revert Local Changes” in the GUI, but this is a remote, headless machine and it would be far more convenient to be able to do that from the command line.
Is there a way to do this? I’d like both a way to detect when there are local changes, and then the corresponding command to revert them.