Active
Project:
Drupal core
Version:
main
Component:
migration system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
15 Jul 2020 at 02:22 UTC
Updated:
18 Jul 2020 at 18:45 UTC
Jump to comment: Most recent
When preparing for a migration using the core d7_file migration, the developer is required to create the directory structure sites/default/files/ for the public files, and something similar if there are also private files to be migrated. This is inconvenient.
Support whatever directories are convenient and let the developer enter those directories on the credential form, /upgrade/credentials.
Do something similar for migrations from Drupal 6.
We will have to update the UI text on the credential form, /upgrade/credentials.
None
None
TODO
Comments
Comment #2
quietone commentedI would think it is not
sites/default/files/but the file paths defined in the source site variables for the file paths.@benjifisher, why not just put the files in the destination at sites/default/files? And, I think, what you are asking for is a way for that path to be ignored when building the full path to the source files. Is that right?
Should we make a documentation page, with examples?
Comment #3
benjifisherYes,
sites/default/files/is the default value. Many of my migration projects keep the default, but it could be something different.Why not put them there? It is a question of convenience.
mkdir -p sites/default/files) and expand a tarball there.ls files/site/default/files/subdir/missing-file*instead ofls files/subdir/missing-file*There are a lot of ways around the first point. If I am using
rsync, then I have to add the path to the command. If I am usingdrush rsync, then I have to add the path in my site-alias file. However I do it, it is an extra step.The second point means that it is not strictly a one-time inconvenience.
Maybe the real argument is not the convenience but how easy it is to write and then follow the documentation. In fact, the advantage is greatest when the source site does not use
sites/default/files/.