Daily backup of a Subversion repository

Tagged with Ruby subversion

Language: Ruby

Use this from Task Scheduler. Written for Windows but you could rewrite for *nix easily.

View as text

filename = "e:/svn/repository.#{Time.now.strftime '%Y%m%dT%:%H%M%S'}.dmp" 
cmd = "e:/svn/bin/svnadmin dump e:/svn/repository/webdev > #{filename}"
puts cmd
`#{cmd}`
Original snippet written by Brian Hogan
Last updated at 10:47 AM on Oct 10, 2008 by Brian Hogan

SnippetStash costs money to host and develop. The service is free for everyone to use
but if you found it useful please consider making a small donation.