KnotLink Protocol and Integration
KnotLink is the bridge between FolderRewind and external programs (such as game mods and scripts).
Typical use cases
- Notify external program to save before backup
- Notify external program to reload state after restore
- Accept external commands to trigger backup or restore, and force a Full backup when needed
Plugin integration points
PluginHostContext.BroadcastEvent(...): broadcast eventsPluginHostContext.QueryKnotLinkAsync(...): request-response queryIFolderRewindKnotLinkCommandHandler: extend recognizable commands
Example commands in MineRewind
BACKUP_CURRENTBACKUP <config_id> <folder_index|folder_name> [comment] [FORCE_FULL]RESTORE_CURRENT_LATESTLIST_BACKUPS_CURRENTRESTORE_CURRENT
See implementation details in KnotLink Command API.