+ -
当前位置:首页 → 问答吧 → svnadmin hotcopy 版本库备份路径问题?

svnadmin hotcopy 版本库备份路径问题?

时间:2011-07-06

来源:互联网

我有看到是这种的svnadmin hotcopy path/to/repository path/to/backup --clean-logs
也有
备份svn存储库 
#压缩备份  
svnadmin dump /home/workhome/svn/repository | gzip > ~/repository-backup.gz  
#不压缩备份  
svnadmin dump /home/workhome/svn/repository > ~/repository-backup.svn  
这种方法,我在E盘建立了一个版本库SVNRepository ,请问svnadmin hotcopy或者svnadmin dump 这两个路径该怎么写啊
C:\Documents and Settings\Administrator>svnadmin dump E:\SVNRepository|gzip>~/re
pository-backup.gz
The system cannot find the path specified.
这种错误


作者: astraydog   发布时间: 2011-07-06

我这样写C:\Documents and Settings\Administrator>svnadmin dump E:/Repositories/SVNReposit
ory>E:/repository-backup.svn
* Dumped revision 0.
就在E盘下建立了一个备份

作者: astraydog   发布时间: 2011-07-06

svnadmin hotcopy REPOS_PATH NEW_REPOS_PATH

Svnadmin hotcopy E:/Repositories/SVNRepository E:/repository01.svn –clean-logs
结果在E盘创建了一个备份(文件夹),跟原来内容差不多
This subcommand makes a full “hot” backup of your repository, including all hooks, configuration files, and, of course, database files. If you pass the --clean-logs option, svnadmin will perform a hot copy of your repository, and then remove unused Berkeley DB logs from the original repository. You can run this command at any time and make a safe copy of the repository, regardless of whether other processes are using the repository.

作者: astraydog   发布时间: 2011-07-06