4 php import_svn.php OLD_PROJECT_NAME NEW_PROJECT_NAME
5 OLD_PROJECT_NAME : Name of the project when it was exported (should be the name of the archive)
6 NEW_PROJECT_NAME : Name of the project where the svn should be imported
10 $oldpjctname = $argv[1];
11 $newpjctname = $argv[2];
13 if (isset($oldpjctname) && isset($newpjctname)){
14 $svnpath = "/svnroot/".$newpjctname;
15 $dumppath = "/tmp/".$oldpjctname."/SCM/SVN/".$oldpjctname.".svndump";
17 $shellstring = "svnadmin load ".$svnpath." < ".$dumppath." 1>/dev/null 2>/dev/null";
19 shell_exec($shellstring);