在另一台计算机上从 Trac 迁移到 Redmine
如果两个系统位于不同的机器上,除了将 Trac 复制到另一台机器之外,是否可以通过其他方式将 Trac 数据库迁移到 Redmine? 在同一个盒子内迁移很容易: http://www.redmine.org/wiki/redmine/ RedmineMigrate,但由于迁移需要访问 Trac 文件,我不知道如何做到这一点。
Is it possible to migrate a Trac database to Redmine if the two systems are in different machines any other way than by copying Trac to the other machine? Migration within the same box is easy: http://www.redmine.org/wiki/redmine/RedmineMigrate, but since the migration requires access to Trac files, I can't see how this could be done.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我没有将 Trac 迁移到 Redmine 的经验,但我确实看到了一种解决方案。
它有点遥远,但是:
在第一个系统上存档 trac 目录,然后将其移动到新系统并将其提取到某个位置。 然后执行迁移过程并查看是否有效。
如果您使用的是其他 SQLite 数据库系统,并且它要求您提供连接详细信息,请填写详细信息,就像您从外部连接到它一样(不要使用 localhost 作为主机)
示例:
同样,这可能行不通,但值得一试。
I have no experience migrating Trac to Redmine, but I do see one solution.
It's a bit out there, but:
Archive the trac directory on the first system, then move it to the new system and extract it somewhere. Then go through the migration procedure and see if it works.
If you are using a database system other sqlite and it asks you for connection details, fill out the details as if you were connecting to it externally (don't use localhost for the host)
Example:
Again, this probably won't work, but it's worth a try.
假设您使用的是 sqlite/sqlite3,这是解决方案
迁移脚本在您指定的 trac 目录中查找 db/trac.db 文件,因此将 trac.db 文件从计算机源复制到计算机目标,并将其放在匹配的目录中这个结构 /somewhere/trac/tracprojectname/db/trac.db 。 一旦开始运行迁移脚本,系统将要求您提供 trac 项目目录,然后给出 /somewhere/trac/tracprojectname ,脚本将自动选择 trac.db
我知道,这个问题很旧,但我认为这会对以下领域的人们有所帮助未来。
希望这可以帮助。
/pnut
Assuming you are using sqlite/sqlite3 here's the solution
The migration script looks for db/trac.db file in the trac directory you specify, so copy over your trac.db file from computer source to computer target and place it in a dir which matched this structure /somewhere/trac/tracprojectname/db/trac.db . Once you start running the migration script, you will be asked for trac project directory, then give /somewhere/trac/tracprojectname , the script will automatically pick the trac.db
I know, The question is old but thought this would help folks in the future.
Hope this helps.
/pnut