svn remote sync

updated @ 2008-01-21

If you have a Subversion repository on a server you don't have shell access to [so you can't do a simple svnadmin dump], the following enables you to pull all changes and history from that repository to a local one, defined in MYREPO:

$ MYREPO=/home/me/someplace

$ svnadmin create $MYREPO
$ echo '#!/bin/sh' > $MYREPO/hooks/pre-revprop-change
$ chmod +x $MYREPO/hooks/pre-revprop-change
$ svnsync init file://$MYREPO http://SVN.remote.url.goes.here/
$ svnsync sync file://$MYREPO

... then repeat the "svnsync sync" to sync down the changes since last time, perhaps in a cron job.

[source]