Unix/Linux Go Back    


UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

SVN main directory sync

UNIX for Advanced & Expert Users


Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 08-03-2017   -   Original Discussion by busyboy
busyboy busyboy is offline
Registered User
 
Join Date: Jan 2010
Last Activity: 8 August 2017, 11:03 AM EDT
Posts: 204
Thanks: 3
Thanked 9 Times in 9 Posts
SVN main directory sync

I'm quite new to SVN and having configured it based on tutorials from youtube etc, I have it setup like below:

* User1 and User2 can commit and update using their own passwords,
* Updates from both user1 and user2 are visible to each other
* files are shared between both user1 and user2
* file contents are successfully visible and updated


Now the problem is that the repo I have setup on server side, is not being updated with the contents from user1 and user2, these changes are only visible to users on their windows system ( using tortoiseSVN client )



I had this SVN repo setup using below given command list:


Code:
svnadmin create /var/svn_repo


pico /var/svn_repo/conf/svnserve.conf

and add the following:


Code:
anon-access = none
auth-access = write
password-db = passwd

Now you’ll need to create a password file:

pico /var/svn_repo/conf/passwd
Add a line in that file for your user in the format =


Code:
exampleuser = examplepassword

and then



Code:
svn mkdir file:///var/svn_repo/d5
svn import /var/www/html/beta/ONE file:///var/svn_repo/d5

Now , I can't see the /var/www/html/beta/ONE is updated with the contents from both User1 and User2, all changes are local to all users,

Any idea, how to update changes on the server side, so that these changes are visible from the browser using apache2 webserver
Sponsored Links
    #2  
Old Unix and Linux 08-10-2017   -   Original Discussion by busyboy
MadeInGermany MadeInGermany is offline Forum Staff  
Moderator
 
Join Date: May 2012
Last Activity: 21 November 2017, 3:14 AM EST
Location: Simplicity
Posts: 3,826
Thanks: 318
Thanked 1,282 Times in 1,160 Posts
I think you need to regularly run a svn update on the web server.
Setup a cron job to do that automatically.
If you have set a password it becomes difficult: you need ugly tools like expect. The modern way is to use credentials, this is common practice with a git repository. Does the svn repository work with credentials?

Last edited by MadeInGermany; 08-10-2017 at 12:33 PM.. Reason: fixed typo
Sponsored Links
    #3  
Old Unix and Linux 08-10-2017   -   Original Discussion by busyboy
drl's Unix or Linux Image
drl drl is offline Forum Advisor  
Registered Voter
 
Join Date: Apr 2007
Last Activity: 20 November 2017, 2:31 PM EST
Location: Saint Paul, MN USA / BSD, CentOS, Debian, OS X, Solaris
Posts: 2,206
Thanks: 241
Thanked 413 Times in 357 Posts
Hi.

It has been a long time since I worked with subversion. When I set up our repository, I used as reference the book noted below.

The only thing I recall doing on the server after the initial setup was a backup every now and then. The book included perl codes for incremental backups. In our situation, we needed to run svnserve, the small server code that listened for subversion-related requests.

I also used svn on a consulting contract, and, as I recall it was relatively easy when working from the book. I was the only user, however.

While working with svn was a dramatic improvement over cvs, there are a number of version control systems available now, see link to comparisons below.

Good luck ... cheers, drl

Comparison of version control software - Wikipedia


Code:
Title: Pragmatic Version control Using Subversion
Subtitle: The Pragmatic Starter Kit -- Volume 1
Author: Mike Mason
Edition: 1st
Date: 2005
Publisher: Pragmatic Bookshelf
ISBN: 0-9745140-6-3
Pages: 224
Categories: software, version control
Comments: Second edition, 2006


Last edited by drl; 08-12-2017 at 12:59 PM.. Reason: Edit 1; 2: typo, svnserve, not svserve; other minor misspelling
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
sync directory tushar_spatil UNIX for Dummies Questions & Answers 1 11-15-2011 09:01 AM
Help with server/directory sync Boloic Shell Programming and Scripting 2 04-14-2010 06:17 AM
Sendmail: help with main.mc dangral UNIX and Linux Applications 1 04-15-2009 06:57 AM
Sync to Green vs. Separate Sync psantinello Solaris 0 06-25-2008 11:39 PM
How to go to main prompt amitra123 HP-UX 2 09-03-2004 02:38 PM



All times are GMT -4. The time now is 08:11 AM.