How can I take backup of entire project (including old version repository) ?

  4 posts   Feedicon  
Replies: 3 - Last Post: February 04, 2010 04:12
by: Tan ChooJun
showing 1 - 4 of 4
 
Posted: January 30, 2010 01:46 by onestop
Greetings,

I am not that familiar with version control, and wondering to know if I can take backup of entire project life cycle, including previous versions and history.

I did 'svn up' and got only the latest version of entire project. After hearing 'Kenai" might go away, I would like take backup of all the version repository.

Appreciate any pointers.

Thanks in advance.
Anand
 
Posted: January 30, 2010 13:22 by wayne meissner
I'm not sure if it works with kenai, but 'svnsync' should be able to mirror the entire subversion tree with history.

Other options, if you want to convert to git or mercurial, is to use their import tools, which will create a new git or mercurial repository, again with full svn history.

This is one of the advantages of git or mercurial - each clone _is_ a full mirror of the central repository, so it is trivial to clone it from one host, then push it to another.

 
Posted: February 04, 2010 04:12 by Tan ChooJun
The following steps is for SVN. I worked out something, here share with u... but it is still a "half-baked" solution Smile
At least these steps allow you to backup SVN repository to your local hard drive. By the way, I only test it in my local Linux platform.

1. command to download
svnsync init file://$HOME/svn_mirror/oj9mdg https://svn.kenai.com/svn/oj9mdg~subversion
2. create mostly empty (but executable) $HOME/svn_mirror/oj9mdg/hooks/pre-revprop-change script
svnsync sync file://$HOME/svn_mirror/oj9md

Note:
oj9mdg is example of my Kenai.com project
 
Posted: February 02, 2010 18:04 by onestop
Thank you, appreciate that. Had no idea before asking that 'sync' question. Was searching all over for that command, not realizing I got CSVNclnt installed. I now instlaled CSVNsrvr on top of that, and doing 'svnsync' , which in progress now.

Again, thanks for your time.
Replies: 3 - Last Post: February 04, 2010 04:12
by: Tan ChooJun
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120127.ac94057)
 
 
Close
loading
Please Confirm
Close