如何将结构从一个克隆转移到另一个 [英] How to transfer a structure from one Plone to another

查看:204
本文介绍了如何将结构从一个克隆转移到另一个的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Plone实例,其中包含一些需要复制到新的Plone实例中的结构(但还有更多不应复制的结构).这些结构是文档树(原型文件夹和文档的书"),它们在这些树之外使用资源(例如,通过UID生成的图像和动画)(在单独的结构中,其中当然包含很多不需要的资源)复制).

I have a Plone instance which contains some structures which I need to copy to a new Plone instance (but much more which should not be copied). Those structures are document trees ("books" of Archetypes folders and documents) which use resources (e.g. images and animations, by UID) outside those trees (in a separate structure which of course contains lots of resources not needed by the ones which need to be copied).

我已经尝试复制整个数据并删除不需要的部分,但这需要很长时间(!),因此我正在寻找更好的方法.

I tried already to copy the whole data and delete the unneeded parts, but this takes very (!) long, so I'm looking for a better way.

因此,这个想法是遍历我的文档树的小树林,并将它们及其所需的资源(稀疏地重建该单独的结构)转移到新的Plone实例中.我对他们两个都有完全的访问权限.

Thus, the idea is to traverse my little forest of document trees and transfer them and the resources they need (sparsely rebuilding that separate structure) to the new Plone instance. I have full access to both of them.

是否有建议的方法来完成此任务?还是应该导出所有这些文件,包括资源结构,然后删除所有不需要的文件?

Is there a suggested way to accomplish this? Or should I export all of them, including the resources structure, and delete all unneeded stuff afterwards?

推荐答案

我发现,每次手动进行这种类型的迁移时,都会犯下错误,迫使我重新进行一次.

I found out that each time that I make this type of migration by hand, I make mistakes that force me to do it again.

OTOH,如果迁移是自动化的,我可以运行它,找出我做错了什么,修复迁移,然后再次进行直到我满意为止.

OTOH, if migration is automated, I can run it, find out what I did wrong, fix the migration, and do it all over again until I am satisfied.

在这种情况下,为了自动执行迁移,建议您查看 collective.transmogrifrier .

In this context, to automate your migration, I advise you to look at collective.transmogrifrier.

这篇关于如何将结构从一个克隆转移到另一个的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆