Announcement

Collapse
No announcement yet.

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

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

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

    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?

  • #2
    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.

    Comment


    • #3
      you mean using svn can backup both remote and local repo or only remote?

      Comment


      • #4
        Originally posted by lse123 View Post
        you mean using svn can backup both remote and local repo or only remote?
        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
        http://svnbook.red-bean.com/en/1.7/s...c.hotcopy.html

        svnadmin dump /opt/repo/test > /u/backups/test.dump
        http://svnbook.red-bean.com/en/1.7/s...in.c.dump.html

        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.

        Comment


        • #5
          Thanks pbruma...... it's help lot,because im new here.
          Cheers....

          Alex
          realpharmacyx

          Comment

          Working...
          X