Skip to main content
Last Reviewed: May 13, 2021

Copy Existing Configuration


Now that you've prepared your site, you need to collect configuration information from the source site.

  1. Copy any existing configuration from the source site.

  2. Update the source path as needed to match your configuration folder:

The example below shows a common location for the config file. If your config file isn't located here, replace config with the full path, such as web/sites/default/config.

cp -r $SOURCE/web/sites/default/files/config/sync/* $DESTINATION/config/
cd $DESTINATION
git add config
git commit -m "Pull in configuration from source site"

It is possible that the Drupal site might have moved the configuration path to a different location. You can find the location of your configuration files by running the following command:

drush status --fields=config-sync

In some cases no files are copied through this step. This is not cause for concern.