Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- #
- # Duplicate a Subversion repo locally.
- #
- remote_repo="$1"
- local_repo="$2"
- if test -d "${local_repo}"; then
- echo "${local_repo} already exists; bailing out."
- exit 1
- fi
- svnadmin create "${local_repo}" &&
- svnrdump dump "${remote_repo}" | svnadmin load "${local_repo}"
- exit $?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement