Drupal 10, the latest version of the open-source digital experience platform with even more features, is here.I would like to fetch a drupal site from any remote server with the 'Sync Data' task
And it shouldn't be too hard as we mostly utilize Drush for this.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | let_the_sync_task_work-2585379-5.patch | 3.98 KB | helmo |
| #4 | let_the_sync_task_work-2585379-4.patch | 2.92 KB | helmo |
| #3 | let_the_sync_task_work-2585379-3.patch | 1.83 KB | helmo |
| #2 | let_the_sync_task_work-2585379-2.patch | 1.06 KB | helmo |











Comments
Comment #2
helmo CreditAttribution: helmo at Initfour websolutions commentedThe UI turned out to be simple... the backend it not functional yet... I have to debug some more.
It might be good to add an extra permission for this... or a setting to disable it globally.
Comment #3
helmo CreditAttribution: helmo at Initfour websolutions commentedIt turns out that no backend changes are needed. I just added a bit of documentation on how to create a custom Drush alias for this purpose.
It needs two aegir specific lines, which I documented in a new README file.
One limitation I found is that the remote site needs to be multi site ... A workaround is to create a symlink on the remote site from sites/ to sites/default.
We could change our sync code to make use of drush path aliases to really fix that.
Comment #4
helmo CreditAttribution: helmo at Initfour websolutions commentedfixed a case where no other sites were available for sync. Custom option should then still be shown.
Comment #5
helmo CreditAttribution: helmo at Initfour websolutions commentedI re-discovered #2407309: Allow sync from any alias.
Here's a combined patch.
One valid point from #2407309-5: Allow sync from any alias., "the files sync assumes files are at `sites/SITENAME/files` which it often isn't."
Comment #6
helmo CreditAttribution: helmo at Initfour websolutions commentedCommitted, and added a new issue #2641170: Use drush path aliases? for the remaining point from #5
Comment #8
helmo CreditAttribution: helmo at Initfour websolutions commentedComment #10
Jon Pugh> It needs two aegir specific lines, which I documented in a new README file.
It would be nice if we could figure out how to avoid needing this...
Wouldn't it be safe to assume that if no "context_type" exists then it is a site?
Comment #11
Jon PughAlso I'm not seeing the new README you mention...
http://cgit.drupalcode.org/hosting_tasks_extra/tree/hosting_sync/README.md
Comment #12
Jon PughI added the parts to my drush aliases and now I get an error:
'context_type' => 'site',
'server' => '@server_master',
I dug in and found "parent_key" to be "platform", so I am assuming it is looking for the "platform" property.