#!/bin/sh -e ########################################################### # Back up Subversion repositories ########################################################### PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" # Subversion config ########################################################### # My config #SVN_DIR="/var/svn" #BACKUP_DIR="." SVN_DIR="" BACKUP_DIR="" SVN_REPOS=`ls $SVN_DIR` # Dump repositories ########################################################### for repos in $SVN_REPOS; do svnadmin dump --incremental --deltas --quiet $SVN_DIR/$repos \ > $BACKUP_DIR/$repos done exit 0
Never been to CodeSnippets before?
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
Back up Subversion repositories (See related posts)
Comments on this post
You need to create an account or log in to post comments to this site.
Related Posts
» Update All of the SVN Versio... in shell svn bash subversion
» Add all new files to Subversion in awk grep svn bash subversion
» remove missing subversion files in svn bash subversion
» Subscribe to a RSS feed of y... in apache php mysql find awk email lighttpd ruby rails ssh date perl regex shell textpattern svn osx mac css python google html bash subversion backup script sql javascript dom expressionengine java flash actionscript rubyonrails unix linux applescript cli c ajax image xml terminal file web sed list delphi administration directory
» 6144 users tagging and stori... in apache php mysql find awk email lighttpd ruby rails ssh date perl regex shell textpattern svn osx mac css python google html bash subversion backup script sql javascript dom expressionengine java flash actionscript rubyonrails unix linux applescript cli c ajax image xml terminal file web sed list delphi administration directory
» Using this function you will... in apache php mysql find awk email lighttpd ruby rails ssh date perl regex shell textpattern svn osx mac css python google html bash subversion backup script sql javascript dom expressionengine java flash actionscript rubyonrails unix linux applescript cli c ajax image xml terminal file web sed list delphi administration directory
Snippets (source code soon to be available) developed by Peter Cooper and powered by Ruby On Rails
-Anthony