将站点直接 Rsync 到 Subversion 存储库
我有一个实时的 drupal 网站社区。我已经在 Google 代码上公开托管该项目。由于互联网连接速度慢,我无法成功地将初始副本上传到存储库(我也尝试过 svn import)。
所以我想,我将编写一个脚本来备份我的整个网站(不包括数据库),将其保存为 tar 球并保存为 tar 包。然后通过 cron 将其同步到存储库。我该怎么办?
I have a live drupal website community. I have gone ahead to host the project publicly on Google code. Due to slow internet connectivity, I have not been able to successfully upload my initial copy to the repository (I've also tried svn import).
So I thought, I will write a script that backs up my entire site excluding the database, save it as a tar ball & then rsync it to the repository via cron. How can I go about this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您是自托管,您可能可以执行此操作,但谷歌代码不会为您提供执行此操作所需的访问权限。如果 SVN 不起作用,为什么不尝试谷歌代码支持的其他(更好的)VCS(IE git 和 Mercurial)之一。
If you were self hosting, you could probably do this, but google code doesn't give you the kind of access you would need to do this. If SVN won't work why don't you try one of the other (better) VCS (IE git and mercurial) supported by google code.