0

我有一个其他人设置的工作 gitosis 服务器,我想在 Ubuntu 上使用 Virtual Box VM 设置复制该服务器,以便在更改实时服务器之前尝试修改它。我对实时 gitosis 服务器具有 root 访问权限,因此我可以 tar /home/git 目录并在需要时将其复制到我的 VM。

那么我究竟需要做什么来复制或镜像 gitosis 服务器呢?究竟需要从头开始复制或安装什么。我不是在谈论 apt-get 安装的软件包,而是在谈论 gitosis install 会做的事情。例如,我可以简单地从服务器复制 /home/git 并使用它,还是应该复制 /home/git 然后使用“git clone --mirror”替换存储库?

我还有什么遗漏吗?例如,如果服务器使用特殊脚本启动 git-daemon,我猜我也必须复制它。

4

1 回答 1

0

I would install gitosis on the new server, just like normal, and than copy your repositories directory and the "admin repo" over. You could also push the repositories and "admin repo" over.

I haven't done this personally, but I don't see why it wouldn't work.

于 2011-08-10T19:39:01.937 回答