Problem/Motivation

A frequent request is for users adopting Drupal that already have a plethora of files on a remote file system to be able to create Drupal’s required file_managed records and (if using Media) media entities from the remote files.

No Drupal migration is really necessary here, as the files are already physically stored on the remote instance, the updates that are needed are strictly Drupal internal.

Proposed resolution

This issue is for tracking the development of a drush command that can be executed that will, in batches of 2500 files (default value that can be overridden) at a time, read the files stored on the object store and create the necessary Drupal internal entities needed to fully manage those files with Drupal and the Flysystem module.

Remaining tasks

* Write the drush command
* Write tests for the drush command
* Update the README with usage documentation

User interface changes

None

API changes

None

Data model changes

Created file_managed records in existing Drupal tables, created Media Entities using those file records.

Comments

lisa.rae created an issue. See original summary.

lisa.rae’s picture

Issue summary: View changes
lisa.rae’s picture

Issue summary: View changes

  • lisa.rae committed da9cb712 on 3.0.x
    Issue #3610035 by lisa.rae: Create a drush command that creates File and...
lisa.rae’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.