注明: 因公司的备份程序之前是保存在另一个硬盘之上,所以现在需要在新系统的新硬盘上恢复之前SVN服务器的数据。
1. # apt-get install subversion
2.# vi /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
mount /dev/sda1 /mnt/svn/
svnserver -d -r /mnt/svn/home/svn
exit 0
其中,下面两句是添加的:
mount /dev/sda1 /mnt/svn/
svnserver -d -r /mnt/svn/home/svn
(/dev/sda1为数据硬盘的对应设备挂载点)