Is there a fundamental difference between backups and version control?

前端 未结 17 926
自闭症患者
自闭症患者 2020-12-29 23:22

How does version control differ from plain backups?

Let\'s forget about the feature decoration, and concentrate on the soul of version control. Is there a clear line

相关标签:
17条回答
  • 2020-12-30 00:04

    Here's a few

    • A backup system keeps backups for a given range of time back. Version control typically always keep all the versions ever made.
    • Version control typically concentrates on versioning of text files.
    • In A version control system you typically can get immediate access to any version of any file. A backup system may take some time before having access to what you want to find.
    0 讨论(0)
  • 2020-12-30 00:04

    I think you can form arguments for either lumping backups together with VCS, or for treating them as entirely separate. But I think you can't avoid talking about individual features of a VCS, as it's the features that differntiate a VCS from a backup solution:

    • Keeping track of who made what change.
    • Attaching a note to each change to explain the reasons behind the change.
    • (Mostly) concurrent access by several users, possibly from very different locations.

    In my eyes, these features are defining. If you ignore them, a VCS is essentially the same as an incremental backup solution.

    If you look at a distributed VCS, you might find a stronger notion of keeping track of branches than in a non-distributed VCS. That is, there may not be a single head/trunk branch, but several at any given time. That's something no backup solution I've come across considers.

    0 讨论(0)
  • 2020-12-30 00:05

    Version control represents the whole history of changes; backups try to make sure you don't lose it.

    0 讨论(0)
  • 2020-12-30 00:05

    They are totally unrelated things. Think of version control as a kind of "time machine", which you can use to go back and forth in time with your code.

    0 讨论(0)
  • 2020-12-30 00:06

    At it's basic level there is no difference between version control and backups. A version control system is an incremental backup of every change that is made. A basic, non distributed VCS, like CVS used by one developer will simply create a backup of every change that is made to a text file.

    Where version control moves beyond basic backups is in the additional tools that are provided to compare versions, merge changes made by multiple developers, tag versions for release or testing and conduct other operations that make managing these separate versions possible.

    0 讨论(0)
  • 2020-12-30 00:07

    The fundamental idea of version control is to manage multiple revisions of the same unit of information. The idea of backup is to copy the latest version of information to safe place - older versions can be overwritten.

    0 讨论(0)
提交回复
热议问题