常见问题
怎样才能导出我的存储库或Trac数据?
要为某个项目导出数据,只需请求做一个它的备份。备份中包含在别处创建相同项目所需的所有东西,包括一个带完整历史的存储库的转储、Trac数据以及共享驱动器内容的拷贝。
要请求做一个备份,到项目设置页面上点击Backup标签,然后点击链接"立即请求创建该项目的一个备份"。我们将为您产生备份,完成后通过邮件通知您。您可以从我们的网站上下载备份,或指定一个S3容器来接收备份。
备份文件被压缩成一个.tar.gz文件。在其内部,目录/trac包含一个"trac-admin hotcopy"的结果。目录/webdav包含共享包含驱动器上所有文件的拷贝。最后,还有您的Git、Mercurial或Subversion存储库的转储文件,分别用"git fast-export --all"、"hg bundle -a"或"svnadmin dump"命令创建。
您可以用以下命令重新创建您的存储库:
# git repository git init cat git.fast-export.gz | gzip -d | git fast-import git reset --hard # mercurial repository hg init hg unbundle hg.bundle hg update # subversion repository svnadmin create repo svnadmin load repo/ < subversion.dump
Note for projects that are greater than 5GB:
Dumps of large repositories can take a very long time for us to generate. As a result, we bundle the repositories of these large projects in their original binary form, rather than as a dump file. Dump files are portable, but the binary version must be used with specific platforms and client versions.
We have created a simple method for you to extract a portable dump file from the binary version, using Docker. The backup will contain a Dockerfile, with instructions of how to use it as comments at the top of the file.
Of course, if you have any questions about how to do this, please contact us at support@repositoryhosting.com.