1

是否可以在 FTP 服务器上镜像 GIT 存储库?如果没有,使用 FTP 备份存储库的最佳解决方案是什么?

在此先感谢,埃塔姆。

4

2 回答 2

4

如果您有权访问 ( SSH ) 服务器 - 您可以使用rsyncscp

scp -r user@example.com:/home/user/repo.git /home/user/Desktop/repo.git

如果您只有ftp访问权限,请使用ncftp

ncftpget –R –v –u "user" ftp.example.com /home/user/repo.git

您将带有仓库的文件夹复制到本地(远程)机器。

于 2011-04-18T10:28:13.743 回答
2

All you need to fully backup a git repository is to copy the directory.

If you want a real mirror, now that would be more challenging, since each repository acts as a full server. Please specify what you expect from the mirror.

于 2011-04-18T10:25:53.793 回答