Solved

rcs/cvs

Posted on 2002-05-08
11
439 Views
Last Modified: 2010-04-21
Hi,

I have 2 database in afs disk that use by team A. 1 is using cvs and the other one is using rcs to control
the revision. I have to copy this two database into a central  afs disk space for team B usage. I will
use rsync to keep these two database in sync. Team B use and modified those files. For those modified
files, team B will stored in another disk space.

Is there any faster way that for me to check whether team A have any new release after I sync the team
B database? Because there have more than 100 files in each database. I need to alert team B when there
is new release in the database and make sure team B will update those modified files if neccessary.

It would be better if provide the code too.  :)

thanks,
hl
0
Comment
Question by:bhuey_ling
  • 6
  • 5
11 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 6996730
depending on you cvs version, there is no reason to have a repository for team A (cvs), and for team B (rcs), 'cause cvs is/was just a more sophisticated frontend to rcs.
I'm not shure about newer cvs versions, if their repository still can be accessd by rcs. If so, you eithet need to tell one team to switch to the other software, or you need a human who checks out from cvs and commits to rcs and vice versa. It will be hard stuff to automate this (you know: cvs is designed for concurrent editing !!)
0
 

Author Comment

by:bhuey_ling
ID: 6997210
I think I didn't express my problems well.

My problem is:

1. team A have database 1 and database 2 for different files storage. database 1 is using rcs and database 2 is uisng cvs.

2. I have to copy this two database to team B's central database. Team B database always have to be in sync with team A database. I plan to use rysnc at here.

3. Now I need a efficient script that can help me check the database 1 and 2 wether there is any new release database 1 & 2 after sync with team A database 1 & 2. The database could have more than hundre files.

thanks,
hl

0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 6997300
ok, think I got it:
 before rsync starts to update team B's database, touch a file there (for example /B/stamp), then start rsync, then do following:
    find /B -newer /B/stamp

(assuming that the synced database is in /B, and that rsync modifies the timestamp of synced files).
0
 

Author Comment

by:bhuey_ling
ID: 7011953
T have another problem that I would like to use rysnc -R to preserve the full path but it seems not work for me:

ex:
A's database is in /main_A/dir_A/file_A

I would like rsync to B's database in /main_B/main_A/dir_A/file_A

If I using command:

rsync -R  /main_A/dir_A/file_A /main_B/

There is nothing copy to /main_B but if I go to /main_A and use command:

rsync -R  dir_A/file_A /main_B/

It works. But This is not useful for me since I need to go to each folder to ryncs each files. Is there any solution for this that I can srync without go to the directory.

thanks,
hl

0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7011997
could we please focus on your initial question.
Makes things simpler ;-)

Then we can solve the rsync problem later.
PLease post the commands (cd, rsync)  exactly as you used them.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:bhuey_ling
ID: 7012629
hi,

There is a concern in your suggestion. By touch a file before rysnc, then those file in A's database will never newer then the current touched file.

i try to solved by using rysnc log data:
since rysnc print out the file that been updated, then i just the output to log file and then sent a mail for notification.

currently, I hv a problem that those file in the A'database, will include some other hardcoded path program. Currently i able to extract those hardcoded path program from the files but I cannot rsync directly.

ex:

file_1 in A's database /afs/teamA/file_1 call:
   /disk1/module1/checklist

my working path would be /ds4/run
B's database /afs/teamB/

my rsync command din't work:   rsync -LRz  /disk1/module1/checklist /afs/teamB/

if i chdir to

cd /disk1

rsync -LRz module1/checklist /afs/teamB

then I can ge /afs/teamB/module1/checlist

I need to use -R to preserve those meaning path name.

Do you hv any idea for it?

thanks
hl

 

 
       


0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7014589
cd /disk1/module1/checklist/afs/teamB/
rsync -azrv /disk1/module1/checklist/afs/teamA .

# is this what you mean
0
 

Author Comment

by:bhuey_ling
ID: 7018802
Sorry if for confusing description. Actually I means:

file_1 in A's database:
  /afs/teamA/module1/checklist/file_1

B's database /afs/teamB
my working path would be in any path other that /afs/teamA and /afs/teamB


my rsync command din't work as i expect:  
%rsync -LRz  /afs/teamA/module1/checklist /afs/teamB/

message : skip directory and no file is copy to /afs/teamB
I expect something like: /afs/teamB//afs/teamA/module1/checklist/file_1


But if i chdir to

%cd /afs/teamA

%rsync -LRz module1/checklist /afs/teamB

then I can ge /afs/teamB/module1/checlist/file_1

I need to use -R to preserve those meaning path name. but if not work for full path. It not make sense if I need to go to the the source directory to use rsync -R

Is there any workaround way?

thanks
hl

0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 200 total points
ID: 7022368
rsync -rzLR ...
0
 

Author Comment

by:bhuey_ling
ID: 7032335
thanks ..  it solve my problem  :)
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7032888
so your qestion about cvs end up in a rsync problem ...
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
non-interactive authentication of sftp command in AIX 5.3 15 187
Error while installing rpm 1 77
LastLogonTimeStamp Attribute 7 48
Install MySQL 5.6 and PHP on Centos Linux 6 101
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now