Friday, September 18, 2009

svn configration for Linux

mkdir dir
mkdir svnrepos For multipule svn
svnserve -i &
svnserver -r -d /reponame path &
cd svnrepos
mkdir project namedirectory
cd project namedirectory
create fsfs file type
svnadmin create --fs-type fsfs ./
ls -la
cd conf
vi svnserve.conf
edit at last project name (real name= Project name )
real name=project name
vi passwd
edit user name & password
username=userpassword
For import working folder data
svn import -m"Intial Import" path of code svn://IP Address/svn repo name
take working folder backup
mv /var/www/html/project namedirectory /var/www/html/project namedirectory.bak
create new working folder
mkdir project namedirectory
cd project namedirectory
for user import data
svn co svn://IP Address/svn repo name
cd repo and edit svnserv.conf and make anon-access = none

svn update
svn commit
svn cleanup
svnadmin hotcopy path/to/repository path/to/backup --clean-logs
Svnadmin dump reponame > reponame.dump For backup
Svnadmin load newrepo < oldreponame.dump For restore dump file
http://www.linuxfromscratch.org/blfs/edguide/chapter03.html
http://svnbook.red-bean.com/en/1.1/ch09.html
http://www.yolinux.com/TUTORIALS/Subversion.html
http://subversion.tigris.org/

0 comments:

Post a Comment