⚙️ Configuration

VortexFileSync is designed to synchronize plugin configurations and data across multiple Minecraft servers using a central database. This guide covers how to set up the plugin, handle multiple servers, and use advanced features like YAML overrides.


⚠️ Prerequisites & Requirements

Database Requirement: VortexFileSync REQUIRES a central MySQL or MariaDB database to function. It uses this database as a "cloud storage" for your files.

Important Database Note: Because files (like JARs or large YMLs) are stored as BLOBs, you must ensure your SQL server can handle large packets.

  • Action: Increase the max_allowed_packet in your my.cnf or my.ini file to at least 64M or 128M (depending on your file sizes).

    SET GLOBAL max_allowed_packet = 67108864;
circle-exclamation

🗺️ Core Concept: Upload vs. Download

  • Upload (The Source): This server is the "owner" of the files. When files change here, they are pushed to the database.

  • Download (The Client): This server watches the database for changes. If it sees a newer version, it pulls the files and overwrites its local copy.


📂 Using Multiple Servers (Setup Example)

Imagine you have a Hub server and two Survival servers. You want to sync a specialized "Menu" plugin config from the Hub to both Survivals.

🏁 Server 1: The "Source" (Hub)

On this server, you define the folder in the

Upload section.

🏁 Server 2 & 3: The "Clients" (Survival 1 & 2)

On these servers, you define the folder in the

Download section.


🔄 Advanced: YAML Overrides

Sometimes you want to sync a configuration file but need specific lines to be different on the receiving server (e.g., different server names or database credentials).

Format Syntax:

  • Use : (colon) instead of . (dot) for both file extensions and key nesting.

  • Wrap keys in ' (apostrophes) to prevent YAML parsing errors.

Example: Syncing a Scoreboard with local Server Names


🛡️ File Filtering (Ignored Files)

You can prevent specific files from being synced. This is useful for logs, local databases, or files that contain unique server IDs.


⏱️ Synchronization Interval

The Sync Interval setting determines how often "Download" servers check the database for updates.

  • Default: 5 seconds.

  • Low values (1-2): Near-instant updates, but higher database load.

  • High values (30+): Efficient, but changes take longer to propagate.

Last updated