The db-sync-tool can automatically detect the database credentials of a TYPO3 application.
- TYPO3 (>= v7.6)
Therefore, you have to define the file path to the LocalConfiguration.php
, which contains the needed credentials. See the TYPO3 documentation for more information.
Example call for a TYPO3 sync in receiver mode:
$ db_sync_tool
--type TYPO3
--origin-host <ORIGIN_HOST>
--origin-user <ORIGIN_USER>
--origin-path <ORIGIN_PATH>
--target-path <TARGET_PATH>
For reusability reasons you can use an additional configuration file containing all necessary information about the sync.
Command line call:
$ db_sync_tool
--config-file <PATH TO CONFIG FILE>
The configuration file should look like:
type: TYPO3
target:
path: <TARGET_PATH>
origin:
host: <ORIGIN_HOST>
user: <ORIGIN_USER>
path: <ORIGIN_PATH>
It is possible to extend the configuration.
Here is an extended example with demo data:
type: TYPO3
target:
path: /var/www/html/htdocs/typo3/web/typo3conf/LocalConfiguration.php
origin:
host: 192.87.33.123
user: ssh_demo_user
path: /var/www/html/shared/typo3conf/LocalConfiguration.php
name: Demo Prod
ignore_table:
- be_users
- sys_domain
- cf_cache_*