what folder I must backup and how restore(must restore in same version?) in case PC o

lse123
lse123
When I am using svn (I am a git user) for local use version control, what folder I must backup and how restore(must restore in same version?) in case PC or HDD windows failure? svn and git differ so may used together to do separate jobs, LimeJs(i am beginner) is an example?

Last updated

pburma
pburma
It depends what you want to backup I suppose. Subversion uses a workspace which is just a partial history from the Subversion repository. You can always recreate your workspace from the Subversion repository in the same way you can recreate your git repo using the clone command. If it is your local work you want to backup you need to copy off that workspace (or some call it a working directory) this is the folder you checkout too, this would be like making a backup of your .git clone directory. If it is the server side repo you want to back up you need to backup the repository folder itself wherever it lives. This would be the equivalent to backing your bare .git directory.
lse123
lse123
you mean using svn can backup both remote and local repo or only remote?
pburma
pburma
[QUOTE=lse123;168520]you mean using svn can backup both remote and local repo or only remote?[/QUOTE] Just doing a file/dir copy for the workspace would be sufficient to backup any of your uncommitted work. For the svn repo its a bit different, the best way to make a clean backup of the repo is with the hotcopy or the dump commands. svnadmin hotcopy /opt/repo/test /u/backups/test [url]http://svnbook.red-bean.com/en/1.7/svn.ref.svnadmin.c.hotcopy.html[/url] svnadmin dump /opt/repo/test > /u/backups/test.dump [url]http://svnbook.red-bean.com/en/1.7/svn.ref.svnadmin.c.dump.html[/url] The hotcopy is a full snapshot of the repo. The dump as I've written it is as well but if you look at the dump admin page you will see that you can do incremental or by revision dumps to make partial backups, so you can do rolling incremental backups (eg; every 24 hours) which is better for very large repos.
alexzane
alexzane
Thanks pbruma...... it's help lot,because im new here. Cheers....:D Alex realpharmacyx

1-5 of 5

Reply to this discussion

You cannot edit posts or make replies: You should be logged in before you can post.

Post a reply
30433 views