Last Reviewed: December 12, 2022
Prepare
Prepare the Local Environment
Get a local copy of both your new site (from the external repository) and your existing site codebase.
In the Dev tab of the site's Dashboard, set the Development Mode to Git, and clone the site locally.
Change into the
$SITEdirectory, then create a new branch based on the default:cd $SITE git checkout -b drup-upg-latestUse Terminus and Drush to export the latest version of the config files from the production environment to
sites/default/files/config:terminus drush $SITE.live -- config:export --destination sites/default/files/configFor rsync, copy the SFTP host information.
RSYNC_HOST=$(terminus connection:info $SITE.live --field=sftp_host)Use that host name to rsync from
config:export:rsync -rvlz --copy-unsafe-links --size-only --checksum --ipv4 --progress -e 'ssh -p 2222' "${RSYNC_HOST}:files/config" .If you run
git statusit should display changed files in theconfigdirectory if there are any changed configurations in production.git status