Targets
Targets define what MinaConfigGuard will back up.
Target syntax is the same for: - /cg backup - scheduler.jobs[].target - shutdownBackup.target
plugins
Backs up all plugin folders under:
plugins/
- In configs-only mode:
- Only config file names from backup.configFiles
- In full mode:
- Everything under plugins (subject to filters)
plugin:Name[,Name...]
Backs up specific plugin folders:
plugins/
/
Examples: - plugin:Essentials - plugin:Essentials,LuckPerms,WorldGuard
Behavior: - In configs-only mode: - Only listed config file names inside each plugin folder - In full mode: - Everything in those plugin folders (subject to filters)
path:relative/path
Backs up a single file or directory relative to server root.
Examples: - path:server.properties - path:plugins/Essentials/config.yml - path:plugins/MyPlugin/
Safety: - Traversal is refused (..)
folder:NameOrPath
Two behaviors:
-
If the value contains a slash:
- Treated as a relative folder path
Example:
folder:plugins/MyPlugin
-
If it is a plain folder name:
- ConfigGuard searches under server root
- Matches all folders with that name
Example:
folder:configs
In full mode, all matches are included.
Note: - In configs-only mode, only config file names from backup.configFiles are selected