在另一台计算机上从 Trac 迁移到 Redmine

发布于 2024-07-22 23:59:58 字数 263 浏览 4 评论 0原文

如果两个系统位于不同的机器上,除了将 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

最后的乘客 2024-07-29 23:59:58

我没有将 Trac 迁移到 Redmine 的经验,但我确实看到了一种解决方案。

它有点遥远,但是:

在第一个系统上存档 trac 目录,然后将其移动到新系统并将其提取到某个位置。 然后执行迁移过程并查看是否有效。

如果您使用的是其他 SQLite 数据库系统,并且它要求您提供连接详细信息,请填写详细信息,就像您从外部连接到它一样(不要使用 localhost 作为主机)

示例:

    Trac directory []: /path/to/extracted/trac
    Trac database adapter (sqlite, sqlite3, mysql, postgresql) [sqlite]: mysql
    Trac database host [localhost]: oldserver.example.com
    Trac database port [3306]:
    Trac database name []: trac_db
    Trac database schema [public]:
    Trac database username []: trac_db_username
    Trac database password []: trac_db_password
    Database encoding [UTF-8]:
    Target project identifier []: myproject

同样,这可能行不通,但值得一试。

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:

    Trac directory []: /path/to/extracted/trac
    Trac database adapter (sqlite, sqlite3, mysql, postgresql) [sqlite]: mysql
    Trac database host [localhost]: oldserver.example.com
    Trac database port [3306]:
    Trac database name []: trac_db
    Trac database schema [public]:
    Trac database username []: trac_db_username
    Trac database password []: trac_db_password
    Database encoding [UTF-8]:
    Target project identifier []: myproject

Again, this probably won't work, but it's worth a try.

路弥 2024-07-29 23:59:58

假设您使用的是 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文