44 lines (33 with data), 928 Bytes
#!/bin/tcsh
# run only from within coco/toolbox/core/admin
# to restore a repository, wipe the repository and use the SF import tool
set svnroot = "svn.code.sf.net::p/cocotools"
set bdir = ../../../backups
test -d ${bdir} || echo "backup: backup directory not found, exiting" && exit 1
cd ${bdir}
# create backup directories
set dirs = ( coco auto examples )
foreach d ( $dirs )
test -d $d || mkdir $d
end
# back up core and covering
set cmd = "rsync -av $svnroot/code/ coco/core"
echo $cmd
$cmd
set cmd = "rsync -av $svnroot/covering/code/ coco/covering"
echo $cmd
$cmd
# back up toolboxes
set auto = ( `cat ../toolbox/core/admin/tb_lst_auto.txt` )
foreach p ( $auto )
set cmd = "rsync -av $svnroot/auto/$p auto"
echo $cmd
$cmd
end
# back up flagship examples
set exas = ( `cat ../toolbox/core/admin/tb_lst_exas.txt` )
foreach p ( $exas )
set cmd = "rsync -av $svnroot/examples/$p examples"
echo $cmd
$cmd
end