Setup
Features
- 🖥️ Commands
- ✅ Sync Features
- ⚙️ Sync Modes
- ↪️ Data Rotation
- ❓ FAQs
Guides
- ↗️ Legacy Migration
- ✨ MPDB Migration
- ☂️ Dumping UserData
- 🟩 Plan Hook
- 📋 Event Priorities
- ⚔️ Keep Inventory
- 🎏 Translations
HuskSync provides options for backing up and automatically rotating user data. That way, if something goes wrong, you can restore a user from a previous snapshot of user data.
HuskSync creates what is known as "Snapshots" of a user's data whenever it saves data.
Each user data snapshot has:
By default, HuskSync will automatically replace the user's current snapshot in the database if it has been less than 4 hours since the last snapshot was created. This can be changed in the config.yml
file by changing the snapshot_backup_frequency
setting under synchronization
. Setting this to "0" will save a new snapshot each time data is saved.
HuskSync will keep the 16 most recent data snapshots for each user (including their current data). After that, when a new user snapshot is set, the oldest snapshot will automatically be deleted. You can change the number of snapshots to keep by changing the max_user_data_snapshots
setting (minimum 1).
Pinned user data snapshots are exempt from being replaced/rotated and can only be deleted manually in-game.
To view a list of a user's snapshots, use /userdata list [username]
. Their most recent snapshots will be listed from the database, from newest to oldest. You can click the buttons to navigate through their pages.
Snapshots marked with a star after the number have been pinned. Hover over it to view more information.
You can then click on the items in the list in chat to view an overview of each snapshot. Alternatively, to view a user's most recent data snapshot, use /userdata view [username]
.
You can use the "Manage" buttons to manage user data. These buttons will only appear if you have the userdata command manage permission. (See Commands)
Data save causes, marked with a 🚩 flag, indicate what caused the data to be saved.
config.yml
by setting save_on_world_save
to false under synchronization
./inventory
command/enderchest
command