Documentation / Guide

Created on 1 March 2019, about 6 years ago
Updated 25 September 2024, 7 months ago

Hello,
Since there is no documentation yet, i provide this short one which helped reproducing a working system with content_sync.
Can be changed and added as a Documentation if wanted.

Content Synchronisation
Migrating Content to new Site

1) Download Content Synchronisation Module via composer

composer require content_sync

or via Drupal Backend

2) Activate module content_sync with drush
drush en -y content_sync
This may take a while

3) Set the export directory in settings.php. Similar to configuration management, we want to set the export directory for YAML files using the settings.php file.le:
Use the variable: $content_directories['sync'] ie:

global $content_directories; 
$content_directories['sync'] = $app_root.'/../content/sync'; 

Note: set $content_directories as global

4) Create content/sync directions above youre webroot folder.

mkdir content
cd content/
mkdir sync

5) Give content/ and all subfolders 777 rights.
chmod 777 -R content/

6) Repeat Step 1) - 5) on Destination Environment

Exporting / Importing
!Before Starting : Switch to a Basic Theme (f.e. Bartik), disable Aggregate CSS files and Aggregate JavaScript files.!
Increase post max value and resource limits in your php.ini(

max_execution_time = 600
max_input_time = 600
max_input_vars = 4000
memory_limit = 192M

)

💬 Support request
Status

Active

Version

4.0

Component

Documentation

Created by

🇩🇪Germany Milos Preuten

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024