This is a bundle to provide easy transfer of server data (database + files) to the client. It can be used in plain symfony projects or for ezpublish >= 5.x
Install the dependency via composer.
composer require kuborgh/data-transfer-bundle
Import configuration into main config (app/config/config.yml). Add the following line
imports:
- {resource: @DataTransferBundle/Resources/config/parameters.yml}
into your config.yml
Add the bundle in app/AppKernel.php
$bundles[] = new Kuborgh\DataTransferBundle\DataTransferBundle();
- Adapt configuration (parameters.yml + parameters.yml.dist) to your project's needs (Server, Path, siteaccess, ...)
See Resources/config/parameters.yml for details
To transfer database+files from the remote server to your develop environment simply call.
php app/console data-transfer:fetch
NOTE: The bundle must be already deployed on the remote side in order to work.
To limit the transfer to database or files only, use
php app/console data-transfer:fetch --db-only
or
php app/console data-transfer:fetch --files-only