#!/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)
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
» create a rails app from rail... in ruby rails shell svn bash subversion rubyonrails
» remove missing subversion files in svn bash subversion
» Switching a working copy wit... in textpattern subversion
» Pretty PS1 Prompt for Bash in shell bash bashrc prompt
Snippets (source code soon to be available) developed by Peter Cooper and powered by Ruby On Rails