17.1 How does it work?
Each server that runs the BETY database will have a unique machine_id and a sequence of ID’s associated. Whenever the user creates a new row in BETY it will receive an ID in the sequence. This allows us to uniquely identify where a row came from. This is information is crucial for the code that works with the synchronization since we can now copy those rows that have an ID in the sequence specified. If you have not asked for a unique ID your ID will be 99.
The synchronization code itself is split into two parts, loading data with the load.bety.sh
script and exporting data using dump.bety.sh
. If you do not plan to share data, you only need to use load.bety.sh
to update your database.