Peter FIsher.

Subversion hot-backup.py on Windows

If you’re trying to run hot-backup.py on Windows to do a hot backup of your subversion repo you need to make the following modifications to your system and the python script otherwise it wont work properly.

  1. Install Python 2.7.2 (DO NOT USE Python Ver 3, hot-backup is out of date)
  2. Setup Environment Variables to include both Python and subversion executables. 
  3. Make modifications to your hot-backup.py to look like mine (see bottom of post).
  4. Go ahead and run it make sure you change the paths to your own repo and backup destination: python C:\Repositories\hot-backup.py —archive-type=zip C :\Repositories\REPO\ C:\Users\Administrator\back\up\location

There is a lot awesome stuff you can do with this python script so check the source code! =)

Modifications to hot-backup.py to get it running on Windows.

# Path to svnlook utility

svnlook = “svnlook.exe”

# Path to svnadmin utility

svnadmin = “svnadmin.exe”

  1. peterfisher posted this