Advertisement
chemoelectric

Untitled

Mar 26th, 2021
378
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #!/bin/sh
  2. #
  3. # Duplicate a Subversion repo locally.
  4. #
  5.  
  6. remote_repo="$1"
  7. local_repo="$2"
  8.  
  9. if test -d "${local_repo}"; then
  10. echo "${local_repo} already exists; bailing out."
  11. exit 1
  12. fi
  13.  
  14. svnadmin create "${local_repo}" &&
  15. svnrdump dump "${remote_repo}" | svnadmin load "${local_repo}"
  16. exit $?
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement