meta data for this page

SVN

Keywords: subversion, websvn, svn

pack -reduce size

pack.sh
#!/bin/bash -eux
 
REPO="/home/svn/hardware"
USER="www-data"
 
sudo -u ${USER} -- svnadmin pack ${REPO}
docker exec -u apache -i subversion svnadmin pack company/project

Move repos to another machine

svnadmin dump /srv/repos/software | gzip > software.dump.gz
zcat software.dump.gz | svnadmin load /srv/repos/software

Update only for last changes:

svnadmin dump --incremental -r 100:566 /srv/repos/software > software_rev100.dump
svnadmin load /srv/repos/software < software_rev100.dump
svn reloacate https://192.168.0.22/svn/software https://svn.mydomain.com/svn/software