ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    GIT as a Web Backup Mechanism

    IT Discussion
    web server git
    3
    5
    1.8k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by

      We were discussing this here in ML recently and I came across this article on backing up your website using GIT today. Thought that it was apropos. GIT is the "new" tool for this. Subversion (SVN) is the more traditional way and works fine too. Mercurial would be out there as an option.

      JaredBuschJ 1 Reply Last reply Reply Quote 1
      • JaredBuschJ
        JaredBusch @scottalanmiller
        last edited by

        @scottalanmiller said:

        We were discussing this here in ML recently and I came across this article on backing up your website using GIT today. Thought that it was apropos. GIT is the "new" tool for this. Subversion (SVN) is the more traditional way and works fine too. Mercurial would be out there as an option.

        I like GIT over SVN for active development because the branching and merging work easier.

        For stuff that is less actively modified, it really does not matter which solution you use IMO.

        I do stand by my opinion that all developed web stuff should be in a version controlled repository though. It is still code and you should have the capability of using the repo to track changes and enable reverts and such.

        This does nothing to backup your databases, so it is not a full backup by any means, but the code side should be considered safe by this point.

        1 Reply Last reply Reply Quote 0
        • T
          technobabble
          last edited by

          Thanks for sharing. Looks pretty interesting. Not sure how this will work with our live VPS Centos server with WHM/cPanel but will be looking at it.

          scottalanmillerS 1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller @technobabble
            last edited by

            @technobabble said:

            Thanks for sharing. Looks pretty interesting. Not sure how this will work with our live VPS Centos server with WHM/cPanel but will be looking at it.

            Should work the same. It just grabs all of the code.

            1 Reply Last reply Reply Quote 0
            • JaredBuschJ
              JaredBusch
              last edited by JaredBusch

              I guess if I setup a script to dump the database to a specific directly on some schedule, I could then ensure I have that directory included in the git commit. This would give me a database version 100% compatible with the point in time git made the commit of the rest of the stuff.

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post