问题
Question:
Is there a good free & open solution out there for revision control on an entire file system? This includes the question "would any of the typical revision control systems out there work for this (git, svn, bzr, etc.)?"
Use case:
We have filesystem images that represent installs that happen to some of our embedded systems where every last file installed can make a difference. They often require modification in the course of development, debugging, and maintenance. Those changes need to be stored along with who made them, why, and when. We also need to be able to diff the changes, and restore to particular versions.
Revisioning filesystems would sound like a reasonable compromise. However I can think of a few potential blocking problems:
- commit authentication, and committer & purpose tracking missing
- includes the history in the file system
- hard to commit to shared repository
回答1:
If anyone else comes across this you might want to look at https://www.presslabs.com/gitfs/
回答2:
Rsnapshot and Bup both look promising, but I don't have details.
I'm going with Bup, and will update this answer as I have more info.
回答3:
I think what you want is the SDK/API to access the repository of a certain version control system and perform the actions (like check-in, check-out, show history, etc...)
I am not sure if Git, SVN provide such SDK/API, but I know few commercial version control softwares provide such SDK/API. (e.g. search sourceanywhere SDK in google)
来源:https://stackoverflow.com/questions/11088727/is-there-an-open-source-solution-for-full-filesystem-revision-control-where-the