#!/bin/sh # sfrsyncbackup -- Backup projects via rsync per sourceforge.net instructions. # # If you are a project administrator, # then please run this every day in the dead of night using cron or at. # # AUTHOR: Gary T. Leavens # include path to rsync (this includes the usual places, so probably ok) PATH="/usr/bin:/usr/local/bin:${PATH}" # Place to put the backups, default is $SFBDIR : ${SFBDIR=$HOME/sourceforge-backups} test -d $SFBDIR || mkdir $SFBDIR cd $SFBDIR # Backup the CVS service : ${CVSB=CVSBACKUP} test -d $CVSB || mkdir $CVSB cd $CVSB for PROJECTNAME in jmlspecs multijava do test -d $PROJECTNAME || mkdir $PROJECTNAME cd $PROJECTNAME rsync -a "rsync://${PROJECTNAME}.cvs.sourceforge.net/cvsroot/${PROJECTNAME}/*" . cd .. done cd .. # Backup the SVN service : ${SVNB=SVNBACKUP} test -d $SVNB || mkdir $SVNB cd $SVNB for PROJECTNAME in jmlspecs do test -d $PROJECTNAME || mkdir $PROJECTNAME cd $PROJECTNAME rsync -a "${PROJECTNAME}.svn.sourceforge.net::svn/${PROJECTNAME}/*" . cd .. done cd .. # Copyright (C) 2002 # # This file is part of JML # # JML is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # JML is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with JML; see the file COPYING. If not, write to # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.