[go: up one dir, main page]

Menu

[r2692]: / trunk / admin / backup  Maximize  Restore  History

Download this file

44 lines (33 with data), 858 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 = ( ep po coll )

foreach p ( $auto )
	set cmd = "rsync -av $svnroot/auto/$p auto"
	echo $cmd
	$cmd
end

# back up flagship examples
set exas = ( recipes )

foreach p ( $exas )
	set cmd = "rsync -av $svnroot/examples/$p examples"
	echo $cmd
	$cmd
end