Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以在 FTP 服务器上镜像 GIT 存储库?如果没有,使用 FTP 备份存储库的最佳解决方案是什么?
在此先感谢,埃塔姆。
如果您有权访问 ( SSH ) 服务器 - 您可以使用rsync、scp
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
您将带有仓库的文件夹复制到本地(远程)机器。
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.