How to do a SVN Dump from a remote repo

Found this great article on how to hack your way to do a SVN dump from a remote repo. I had never use the svnsync command but this allows you to make the remote repo a local one and you can easily use it to create your dump file. Very useful when you have lost admin access to the original server and you need to migrate to a new SVN server.

Quick command list:

  • svnadmin create temprepo
  • echo ‘#!/bin/sh’ > temprepo/hooks/pre-revprop-change
  • chmod +x temprepo/hooks/pre-revprop-change
  • svnsync init file://temprepo https://server/svn/origrepo
  • svnsync sync temprepo
  • svnadmin dump temprepo > dumpfile

Copy the dump file over to the new SVN server and on it:

  • svnadmin load reponame < dumpfile

A quick word of warning because the UUID will change with this process so doing “svn sw” on existing working copy might prove to be challenging.

Cisco VPN Client and Linux Kernel 2.6.21

I had some problems installing the Cisco VPN client 4.8 on my Slackware 12.0 workstation so I searched a bit on the net and fond a page that had almost everything to the t: http://blog.360.yahoo.com/blog-.WURHFYwdq8.zfEosWC6j8jQ?p=55. A few very small differences that are due to the fact that the kernel has changed a bit more since this doc. So here are the very quick steps:

  1. cd /usr/src/linux/
  2. make menuconfig – and check that everything is good
  3. make bzImage
  4. cd include/linux
  5. ln -s autoconf.h config.h
  6. cd /whereever/vpnclient/
  7. perl -p -i -e ‘s/CHECKSUM_HW/CHECKSUM_COMPLETE/g’ interceptor.c – to replace references of CHECKSUM_HW with CHECKSUM_COMPLETE; there are only 2 to fix
  8. perl -p -i -e ‘s/skb_checksum_help(.*)/skb_checksum_help(skb)/g’ interceptor.c – to replace the 5 references to skb_checksum_help() with the proper parameters
  9. ./vpn_install – to install the Cisco VPN client

If you have a different experience don’t hesitate to let me know how it works for you.