Drush command to sync files directory between environments
Arguments:
source Source alias
destination Destination alias
Options:
--only-private Only sync the private files directory
--only-public Only sync the public files directory
Examples:
drush fsync @source @destination Sync both the public and private files directories
drush fsync --only-public @source @destination Only sync the public files directory
Aliases: fsync
-
Require
composer/installerscomposer global require composer/installers
-
Configure the installer path for drush plugins in
~/.composer/composer.json{ "extra": { "installer-paths": { "../.drush/plugins/{$name}": ["type:drupal-drush"] } } } -
Require
gapple/drush-filesynccomposer global require gapple/drush-filesync
- Download the release package
- Unzip the package to
~/.drush/
-
Require
composer/installersin your projectcomposer require composer/installers
-
Configure the installer path for drush plugins in your project's
composer.json{ "extra": { "installer-paths": { "drush/contrib/{$name}": ["type:drupal-drush"] } } } -
Require
gapple/drush-filesyncin your projectcomposer require gapple/drush-filesync
- Download the release package
- Unzip the package to the
drushfolder within your project