备份collabnet颠覆边缘到另一个硬盘 [英] backup collabnet subversion edge to another hard disk

查看:110
本文介绍了备份collabnet颠覆边缘到另一个硬盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了Collabnet Subversion Edge,并希望确保已正确备份它.我不想使用提供的CloudBackup服务.

I've installed Collabnet Subversion Edge, and would like to make sure I have it backed up properly. I would like NOT to use the CloudBackup service offered.

我去了collabnet(localhost:3343)的管理界面,然后去了Repositories> Backup Schedule.在那里,您可以选择3种不同的工作类型":

I've went to the administration interface for collabnet (localhost:3343) and went to Repositories > Backup Schedule. There, one can choose between 3 different 'Type of Job':

  • 云服务备份
  • 完全转储备份
  • 热拷贝备份

任何一个都不能选择将备份复制到何处.我曾尝试查找它的工作原理,但似乎缺少很多文档.

Neither lets you choose where to copy the backup. I've tried looking up how this works, but documentation seems to be lacking a lot.

备份此类存储库的最佳方法是什么?我只保留整个collabnet文件夹(c:\ csvn)的副本吗?

What is the best way to backup such a repository? Shall I just keep a copy of the entire collabnet folder (c:\csvn)?

推荐答案

您可以使用Windows Server Backup备份Subversion存储库.它可以让您放弃备份 网络共享,专用备份卷,可写媒体.例如,使用wbadmin命令行工具可以安全地备份存储库.这个简单的命令将C:\foo\bar的一次副本备份备份到X:\卷:

You can use Windows Server Backup to backup Subversion repositories. It allows you to shedule backups to a network share, dedicated backup volume, writeable media. For example, wbadmin command-line tool allows you to safely backup your repositories. This simple command performs one-time copy backup of C:\foo\bar to X:\ volume:

wbadmin start backup –backupTarget:x: -include:c\foo\bar -vsscopy

(要安装Windows Server Backup,请在提升的命令提示符下运行ocsetup WindowsServerBackup).

(To install Windows Server Backup, run ocsetup WindowsServerBackup in elevated command-prompt).

您可以通过多种方式设置备份:

You can setup backup in different ways:

  • wbadmin command-line tool,
  • PowerShell cmdlets, good for automation and customization of backup actions,
  • Windows Server Backup wizard (control panel, actually) MMC snap-in.

运行备份时不需要停止服务器的服务,因为 FSFS存储库后端始终处于一致状态 .

It's not required to stop server's service when you run the backup because FSFS repository backend is always in consistent state.

以下是有关从备份中恢复Subversion存储库的一般提示:

Here are general tips about recovering Subversion repository from a backup:

  1. 将存储库备份恢复到一个空目录,以确保恢复的存储库文件不会与损坏的存储库文件混在一起.存储库恢复后,可以删除损坏的存储库,然后将其替换为恢复的存储库.

  1. Recover repository backup to an empty directory to make sure that restored repository files won't mix with files of the broken one. After repository if recovered, you can delete broken repository and then replace it with the recovered one.

停止启动Subversion服务器.

Stop-start cycle your Subversion server after recovering repository from a backup.

如果存储库恢复后您的客户端出现错误,请运行 svnadmin recover 反对.该命令立即完成,并使存储库再次可访问.

If your clients get errors after repository recover, run svnadmin recover against it. The command finishes instantly and makes repository accessible again.

这篇关于备份collabnet颠覆边缘到另一个硬盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆