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
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. - compress_data (
boolean
): Specifies whether the dump should be compressed. If set totrue
, the dump will be compressed using thegzip
algorithm, 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 totrue
will include aDROP TABLE IF EXISTS
statement before theCREATE TABLE
statement, preventing table duplication conflicts. - insert_ignore_into (
boolean
): Theinsert_ignore_into
property specifies whether data should be inserted using theINSERT IGNORE INTO
statement during the import process. Setting it totrue
will 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 EXISTS
statement will be included in the dump, avoiding errors if the database is already present. - ignore_tables (
array
ofstrings
): 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.