Closed rpgdev closed 3 months ago
To achieve a Forced Sync, simply set:
SYNC_WARN_THRESHOLD=0
Which is in fact what I use on my server.
I don't understand why you'd like to have an explicit option for it.
Actually, just re-read all possible values in the config and this will work for me, thanks. I still think a explicit FORCE_SYNC would still be valuable, specially from the command line, then it wouldn't "overload" this option since the wording doesn't suggest that it would be useful for forcing a sync.
This is explicitly stated in the description for SYNC_WARN_THRESHOLD
Set to 0 to ALWAYS force a sync
I know, that's the first thing I acknowledged in my comment.
I guess I just don't see the point of another variable to do the same thing.
I will add a little clarification in the config description.
I know it's easy to miss options: the script has become quite packed of features, but I try my best to document each setting here on GitHub and in the config file.
I've been getting the "Forced sync is not enabled. NOT proceeding with SYNC job" often due to some file operations I've been doing lately, is there a explicit FORCE_SYNC option? The wording of this warning makes it seem as if there was one but as far as I understand it this can be accomplished by way of either the
SYNC_WARN_THRESHOLD
orADD_DEL_THRESHOLD
but sometimes you may just want to force a sync via the script. I saw others were using a different config file with such settings changed for such instances but is there a explicit FORCE_SYNC option that can be used? If not, it'd be great to have one that could also be passed as an cli argument to the script.