Can a subversion repository be moved, but its mirror remain the same?
I am trying to move a subversion repository to a new server, but not its mirror.  I have done the following:

 1. Dump old repo
 2. Load dump into new repo
 3. Setup the new repo's post-commit hook to svnsync to the existing mirror

The hook:

    #!/bin/sh
    SVNSYNC=/usr/bin/svnsync
    TO=https://mirror.example.com:443/svn/iaw
    SYNC_USER=svnsyncuser
    SYNC_PASS=svnsyncpass
    SOURCE_USER=svnsyncuser
    SOURCE_PASS=svnsyncpass
    
    $SVNSYNC --non-interactive sync $TO \
    --sync-username $SYNC_USER --sync-password $SYNC_PASS \
    --source-username $SOURCE_USER --source-password $SOURCE_PASS &
    
    exit 0

Predictably, when I try to run this hook from the new repo I get the following:

> svnsync: OPTIONS of 'http://oldrepo.url/svn/iaw': Could not resolve hostname `oldrepo.url': Host not found (http://oldrepo.url)

The problem is that the mirror was initialised with the url of the old repo.  Does anyone know if this can be changed, or do I need to start again from scratch with a new mirror?

Many thanks
Can a subversion repository be moved, but its mirror remain the same?
===

I am trying to move a subversion repository to a new server, but not its mirror.  I have done the following:

 1. Dump old repo
 2. Load dump into new repo
 3. Setup the new repo's post-commit hook to svnsync to the existing mirror

The hook:

    #!/bin/sh
    SVNSYNC=/usr/bin/svnsync
    TO=https://mirror.example.com:443/svn/iaw
    SYNC_USER=svnsyncuser
    SYNC_PASS=svnsyncpass
    SOURCE_USER=svnsyncuser
    SOURCE_PASS=svnsyncpass
    
    $SVNSYNC --non-interactive sync $TO \
    --sync-username $SYNC_USER --sync-password $SYNC_PASS \
    --source-username $SOURCE_USER --source-password $SOURCE_PASS &
    
    exit 0

Predictably, when I try to run this hook from the new repo I get the following:

> svnsync: OPTIONS of 'http://oldrepo.url/svn/iaw': Could not resolve hostname `oldrepo.url': Host not found (http://oldrepo.url)

The problem is that the mirror was initialised with the url of the old repo.  Does anyone know if this can be changed, or do I need to start again from scratch with a new mirror?

Many thanks