Difference between revisions of "Subversion"
From RobolaboWiki
Line 50: | Line 50: | ||
</pre> | </pre> | ||
− | <h1> Dump script for | + | <h1> Dump script for subversion </h1> |
Download [[media:dumpScript.sh | dumpScript.sh ]] and execute where the repos are. | Download [[media:dumpScript.sh | dumpScript.sh ]] and execute where the repos are. | ||
Dump files will be created in the same path. | Dump files will be created in the same path. | ||
− | <h1> Load script for | + | <h1> Load script for subversion </h1> |
Download [[media:loadScript.sh | loadScript.sh ]] and execute where the dump files are. | Download [[media:loadScript.sh | loadScript.sh ]] and execute where the dump files are. | ||
Must be the same place at which the repo will be created. | Must be the same place at which the repo will be created. | ||
+ | |||
+ | <h1> Download all repos </h1> | ||
+ | Download [[media:getRepositories.sh | getRepositories.sh ]] and execute | ||
+ | |||
+ | <h1> Download all AGUTI publications </h1> | ||
+ | Download [[media:getAllPublications.sh | getAllPublications.sh ]] and execute | ||
+ | |||
+ | <h1> Download all AGUTI university (no publications) </h1> | ||
+ | Download [[media:getAllRepos.sh | getAllRepos.sh ]] and execute |
Revision as of 17:39, 11 January 2013
Contents
Subversion Manager
Dump
To create a file with all the repo
svnadmin dump <SVN_REPO_NAME> > <SVN_DUMPFILE_NAME>
Load
To create a repo from a dump file
svnadmin create <SVN_REPO_NAME> svnadmin load --ignore-uuid <SVN_DUMPFILE_NAME> < <SVN_REPO_NAME>
Filter
To create a repo file with a specific directory within the dump file
svndumpfilter include <PATH_TO_DESIRED_DIR> --drop-empty-revs --renumber-revs --preserve-revprops < <SVN_DUMPFILE_NAME> > <SVN_DESIRED_DIR_DUMPFILE_NAME>
However, the <SVN_DESIRED_DIR_DUMPFILE_NAME> keeps the directory structure of the old repo. If you want to delete it:
1) Edit <SVN_DESIRED_DIR_DUMPFILE_NAME>
2) Remove the top directory (e.g.):
Node-path: 2007-2008 Node-action: add Node-kind: dir Prop-content-length: 10 Content-length: 10 PROPS-END
3) Remove all the references to the top directory (e.g.)
sed -i 's/Node-path: 2005-2006/Node-path: /g' asignaturas_2005-2006_dump sed -i 's/Node-copyfrom-path: 2005-2006/Node-copyfrom-path: /g' asignaturas_2005-2006_dump
Dump script for subversion
Download dumpScript.sh and execute where the repos are. Dump files will be created in the same path.
Load script for subversion
Download loadScript.sh and execute where the dump files are. Must be the same place at which the repo will be created.
Download all repos
Download getRepositories.sh and execute
Download all AGUTI publications
Download getAllPublications.sh and execute
Download all AGUTI university (no publications)
Download getAllRepos.sh and execute