Settings File for DumpSync
The configuration file dumpsync.yml allows you to customize the options for the dump process.
It should be saved as dumpsync.yml in the same directory where your project is running.
File Structure
Example structure:
exports:
dump_data: true
lock_tables: true
compress_data: true
insert_ignore_into: false
drop_table_if_exists: true
database_if_not_exists: true
connection:
max_retries: 3
retry_connection_interval: 5
Properties of exports
- dump_data (
boolean): Determines whether all data in your database should be exported. If set totrue, the content of all tables will be included in the dump. Iffalse, only the structures of the tables will be exported.\ - lock_tables (
boolean): Indicates whether tables should be locked during the dump process. If set totrue, the tables will be locked to prevent any changes while the dump is being created, ensuring data consistency. Iffalse, tables will remain unlocked, which may lead to potential inconsistencies if data is modified during the dump. - compress_data (
boolean): Specifies whether the dump should be compressed. If set totrue, the dump will be compressed using thegzipalgorithm, reducing the file size. Iffalse, the dump will be saved as a plain SQL file. - drop_table_if_exists (
boolean): Specifies whether existing tables should be dropped before being recreated during the import process. Setting this totruewill include aDROP TABLE IF EXISTSstatement before theCREATE TABLEstatement, preventing table duplication conflicts. - insert_ignore_into (
boolean): Theinsert_ignore_intoproperty specifies whether data should be inserted using theINSERT IGNORE INTOstatement during the import process. Setting it totruewill ensure that duplicate records are ignored, preventing errors from duplicate entries in the table. - database_if_not_exists (
boolean): Indicates whether the database should be created only if it does not exist. If set totrue, aCREATE DATABASE IF NOT EXISTSstatement will be included in the dump, avoiding errors if the database is already present. - ignore_tables (
arrayofstrings): A list of tables to be ignored during the dump. Tables listed here will not have their structure or data exported. Example:
ignore_tables:
- table
Properties of connection
- max_retries (
integer): Defines the maximum number of retry attempts to establish a connection to the database. If a connection attempt fails, the application will retry up to this number. - retry_connection_interval (
integer): Specifies the interval (in seconds) to wait between each retry attempt when attempting to connect to the database. This allows for gradual retries rather than immediate retries.