Is there any simple way how to copy directory from one repository into another one with copying all of the history?
A:
You can create dump file using "svnadmin dump", then import to a new repository.
tbman
2009-06-02 14:47:14
+5
A:
Simplest way is using:
svnadmin dump path/to/repos > repos.out
This will create a portable format for your repository (with history) in the file repos.out. You can then use:
svnadmin load path/to/newrepos < repos.out
to load your 'dumped' repos to the new or existing one.
Adam
2009-06-02 14:48:05
+2
A:
If you don't want history, you can use svn export
to get a clean folder without the .svn folders and then svn import
into your other repository.
With history, you would need to use the svnadmin dump
. You would then use svndumpfilter
to filter for only the parts or paths you want to use before using svnadmin load
.
Topics to read:
Migrating Repository Data Elsewhere
Filtering Repository History
crashmstr
2009-06-02 14:49:16
+1
A:
You can check these questions
- How to move a single folder from one Subversion repository to another repository?
- Exporting a single project from SVN repository
- is it possible to migrate a single component from one svn repository to another while preserving history?
- How do I dump one project out of a SVN repository which contains multiple projects
- How can I extract a subtree from my svn repository into a new one?
antispam
2009-06-02 14:57:47
+5
A:
As suggested in the subversion book :
svnadmin dump path/to/repos_src \
| svndumpfilter include path/inside/svn/to/directory \
| svnadmin load path/to/repos_dst
with an example :
svnadmin dump /var/lib/svn/old_repo \
| svndumpfilter include trunk/my_project/common_dir \
| svnadmin load /var/lib/svn/new_repo
Steve Schnepp
2009-06-02 15:14:46
been looking for this . Thanks
Martin Murphy
2009-08-11 15:45:51