Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 169017
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T12:33:21+00:00 2026-05-11T12:33:21+00:00

Is it possible to have multiple repositories for the same project? I am currently

  • 0

Is it possible to have multiple repositories for the same project?

I am currently using SVN with TortoiseSVN with the repositories on an external hard disk at my home, and well as regards a backup-wise solution, this isn’t ideal.

So what I have in my mind is making an account with unfuddle and having a second (my home one being the first) repository to where I can commit there (even for a remote-backup solution).

Now of course, I want integrity in my code and I don’t want discrepancies between the two (or more ?) repositories, which means that both repositories should be both updated when I commit my code.

So what can I do to make this happen?

Something I have in my mind is committing to my primary repository (the home one) and then it automatically commits to the online repository (the unfuddle one) automatically (because of course I don’t want to manually commit to both repositories every time I commit my code)

Is this possible ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T12:33:22+00:00Added an answer on May 11, 2026 at 12:33 pm

    Everything’s possible 🙂

    EDIT: haste never leads to quality nor did my answer, missing all the Windows references in the question. So here’s a run down on how to get the sync working on Windows.

    You have 2 machines in this case:

    • Machine A: where the repository runs now.
    • Machine B: where you’d like to sync to.

    Create a new repository on B that you wish to synchronise to from A. It’s very important that this repository is blank (running on rev0).

    On B, in the SVN folder of the newly created repository, browse to /hooks and create the following BAT files:

    start-commit.bat

    IF '%2' == 'someusername' (goto :label1) else (echo 'Only the someusername account may commit new revisions' >&2 )  exit 1 goto :eof  :label1 exit 0 

    pre-revprop-change.bat

    IF '%3' == 'someuser' (goto :label1) else (echo 'Only the someuser user may change revision properties' >&2 )  exit 1 goto :eof  :label1 exit 0 

    someuser being a syncuser that exists in machine A’s repository and is the only user with rights in machine B’s repository. It’s very important no commits are done manually to machine B’s repository.

    In the /hooks folder of the repository on machine A

    post-commit.bat

    CD PATH_TO_SUBVERSION\bin svnsync sync svn://machineB/repos --non-interactive --no-auth-cache --source-username machineAusername --source-password machineApassword --sync-username machineBusername --sync-password machineBpassword 

    Once these batch files are in place we need to tell the repository on B we want to synchronise to it:

    svnsync initialize svn://machineB/repos svn://machineA/repos --non-interactive --no-auth-cache --source-username machineAusername --source-password machineApassword --sync-username machineBusername --sync-password machineBpassword

    which should return something like: Copied properties for revision 0.

    Now every time you commit into the repository on machine A it will be copied over to machine B’s repository.

    It’s very important to note that if you want to synchronise to Google Code or another online repository that they commit a trunk/branches/tags structure into revision 1. You have to contact them to reset the repository if you wish to use these third party repository location as the synchronisation repository.

    To give credit where due I copied the pre-revprop-change.bat and start-commit.bat from http://www.svnforum.org/2017/viewtopic.php?t=5745&sid=06551a22d9c0b5780cf1faab6b0e8ce9

    I just implemented this myself on a test repository and seems to work like a charm. I’m glad I noticed this question though svnsync has sunk too deep down in my skull. I meant to do set it up when setting up svn at work. So I know what the first thing is I’ll be doing at work tomorrow, thanks for that!

    EDIT 2:

    If you, like me, have tons of repositories this generic post-commit.bat might appeal to you:

    SET REPOS=%1 SET REV=%2 SET REPOS=%REPOS:D:\SVN=%  CD 'C:\Program Files\Subversion\bin'  svnsync sync svn://machineB/%REPOS%-sync --non-interactive --no-auth-cache --source-username usernameA --source-password passwordA --sync-username usernameB --sync-password passwordB 

    This catches the repository name and uses it to dynamically determine the sync URL. I suffixed all my synchronisation repositories on machine B with -sync for clarity. The D:\SVN bit is the svnserve root on machineB even though this generic BAT file should be placed in the /hooks of machineA‘s svnserve root.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to have multiple view of the same display object? (e.g. same-computer
Is it possible to have multiple listeners to messages carried by MSMQ? WCF appears
Is it possible to have multiple folders where I can place applications to be
On IIS 6, is it possible to have multiple domain names pointing to the
A single Biztalk Server can have multiple Host processes. Is it possible to create
Is it possible to have a file belong to multiple subpackages? For example: /**
I have multiple mercurial repositories and used hg clone to create backups of them
Is it possible to use BindingSource.find on multple columns? I have a treeview and
Is it possible to have a MySQLi prepared statement within the fetch() call of
Is it possible to have XML-embedded JavaScript executed to assist in client-side (browser-based) XSL

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.