Thursday, July 19, 2012

How to take backup and setup the CVS on Linux Machine

For Backup two ways:

1) Make a tar file and
2) use the rsysnc command
   rsync -rv user01@server01.comentum.com:Source path/ /Destination path/


 For Set up the CVS server :




 1) Install the CVS Server ( apt-get install cvs)
 2) Install the xinetd  (apt-get install xinetd)

 To set up xinetd create a file called "cvs" in "/etc/xinetd.d/" with the following content.

 service cvspserver
{
     port = 2401
     socket_type = stream
     protocol = tcp
     user = root
     wait = no
     type = UNLISTED
     server = /usr/bin/cvs
     server_args = -f --allow-root /usr/local/cvsroot pserver   //(If u want to change the path then replace /usr/locatl/cvsroot)
     disable = no
}

3)  Start the CVS server:

sudo /etc/init.d/cvsd start

 4) check weather the CVS server is running or not. (ps -def | grep cvsd)

 ** past the file if you took backup and update the path
 other wise you have to create a project directory and past it there.

 5) Now you have to add the users and group to the directory:

 From System->Administration->Users and Groups. Click Unlock button and enter the password, then click Manage Groups button. Highlight cvsd then click Properties and select the username from the Group Members list.
Create the user password for CVS login as shown below:
cvsd-passwd /var/lib/cvsd/myrepos username

6)  The syntax to login to the local CVS server is shown below:
cvs -d :pserver:username@localhost:/myrepos login
However, if the $CVSROOT is defined just simply enter "cvs login" instead. Add following line in ~/.bashrc is the easiest way to add it to the environment.

export CVSROOT=:pserver:username@localhost:/myrepos

7) cvs login
8) Enter the password



Now you have to check in and check out

9) For Check out the command is (cvs co Directory Name)
10) For Check In the command is (cvs ci -m "new version" filename)
cvs commit
11) For Adding the Directory in CVS (cvs  -R add "Test file" *)





At last if you are facing some problem then give the cvs directory permission
chmod 775 -R cvs
chgroup src cvs
chmod g+s cvs


-------------------------------------------------------------------

Add the repository to the cvs with sub folder

cvs import releases Sirius releases 

releases --- main folder name
Sirius  ---- name any




refer : https://help.ubuntu.com/10.04/serverguide/cvs-server.html

No comments:

Post a Comment

Qualcomm Short Term

  113 is the SL. 1st Target by mid July.

Total Pageviews