Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Content Snapshot

20 sites Security covered
View on drupal.org

This module provides command-line tools to import and export content, making it easier to set up new Drupal sites, share content between developers, and create reproducible environments. It supports various content types and structures.

Introduction

Do you want to be able to build your website from the scratch and fill it with content created by hand? This module will provide you with content importing/exporting capabilities suited for automated environments. You will be able to import/export content and move it around, share it with your co-developers, and create reproducible Drupal instances.

Using CLI you can install Drupal or use existing skeleton database, import configuration, and now additionally to that - import a content snapshot.

This module supports circular dependencies in the content

The goal is that after import/export cycle, the snapshot shouldn't change at all, so it can be kept in a VCS, and changes should be easily trackable.

Usage

See: README.txt .

What is NOT in this module's scope

  • Importing/exporting content between different Drupal versions. Most of the time it should work without any issue, but it's out of scope of this module to ensure that you can import/export everything from anywhere to anywhere. The correct way of dealing with different Drupal versions is to import your content, upgrade your Drupal, and then re-export it again, that's the safest way to avoid any data loss. Feel free to seek help in the issue queue though.
  • The same can be said about different versions of this module. Produced snapshots may not be compatible.
  • GUI. This module is strictly for CLI usage. If we will provide GUI someday, it will be through a dedicated submodule. There are no plans for that right now though.
  • Because the module is CLI focused it will also not expose snapshot to be downloaded. If you are using CLI you should be able to compress it and move around yourself.

This module supports:

  • nodes
  • users
  • media
  • content_translation
  • layout_builder
  • layout_builder_st
  • paragraphs
  • pathauto
  • and more

Next plans:

  • Support revisions.

Requirements

  • Drupal 10 / 11
  • Drush 11 / 12 / 13
  • PHP >= 8.1

Other

If you like this module's code quality but would rather like to generate content programmatically, see my other module: https://www.drupal.org/project/content_fixtures .

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Feb 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 2
Maintenance
Dormant

Releases

Version Type Core Release date
4.0.x-dev Dev 10–11 Feb 7, 2025
4.0.0-beta1 Pre-release 10–11 Feb 7, 2025