Author: bugman Date: Wed Jun 19 11:04:30 2013 New Revision: 20208 URL: http://svn.gna.org/viewcvs/relax?rev=20208&view=rev Log: Added the scripts for backing up the relax SVN repository and mailing lists to the repository. This is to make it easier for others to set up the backups on their systems. Added: trunk/devel_scripts/backup_mailing_lists (with props) trunk/devel_scripts/backup_repository (with props) Added: trunk/devel_scripts/backup_mailing_lists URL: http://svn.gna.org/viewcvs/relax/trunk/devel_scripts/backup_mailing_lists?rev=20208&view=auto ============================================================================== --- trunk/devel_scripts/backup_mailing_lists (added) +++ trunk/devel_scripts/backup_mailing_lists Wed Jun 19 11:04:30 2013 @@ -1,0 +1,15 @@ +#! /bin/sh + +# Target directory. +DIR='/data/relax/gna/relax_mailing_lists/' + +# Log file. +LOG=$DIR'log' +ERR=$DIR'err' + +# Get the files. +echo -e "Wget, `date`" >> $LOG 2> $ERR +wget -np -m --no-check-certificate https://mail.gna.org/public/relax-announce/ >> $LOG 2>> $ERR +wget -np -m --no-check-certificate https://mail.gna.org/public/relax-commits/ >> $LOG 2>> $ERR +wget -np -m --no-check-certificate https://mail.gna.org/public/relax-users/
$LOG 2>> $ERR
+wget -np -m --no-check-certificate https://mail.gna.org/public/relax-devel/
$LOG 2>> $ERR
Propchange: trunk/devel_scripts/backup_mailing_lists ------------------------------------------------------------------------------ svn:executable = * Added: trunk/devel_scripts/backup_repository URL: http://svn.gna.org/viewcvs/relax/trunk/devel_scripts/backup_repository?rev=20208&view=auto ============================================================================== --- trunk/devel_scripts/backup_repository (added) +++ trunk/devel_scripts/backup_repository Wed Jun 19 11:04:30 2013 @@ -1,0 +1,23 @@ +#! /bin/sh + +# Target directory. +DIR='/data/relax/gna/repository_backup/' + +# Log file. +LOG=$DIR'log' +ERR=$DIR'err' + +# Header. +echo -e "\n\n\n\n\n<<< Downloading the latest relax dump >>>\n\nToday is `date`" >> $LOG 2>> $ERR +echo -e "\n\n\n\n\n<<< Downloading the latest relax dump >>>\n\nToday is `date`" >> $ERR 2>> $ERR +echo -e "\n\n\n" >> $LOG 2>> $ERR + +# Rsync the repository. +rsync -avHS rsync://svn.gna.org/svn/relax/ $DIR'gna.repo' >> $LOG 2>> $ERR + +# Make a dump. +svnadmin dump $DIR'gna.repo' > $DIR'relax.dump' 2> 'dump_log' + +# Compress the dump (removing the old first). +rm -rf $DIR'relax.dump.bz2' > /dev/null 2> /dev/null +bzip2 $DIR'relax.dump' > /dev/null 2> /dev/null Propchange: trunk/devel_scripts/backup_repository ------------------------------------------------------------------------------ svn:executable = *