On Tue, 11 Sep 2012 01:57:46 -0700 (PDT) ansh <[email protected]> wrote:
> hi all > i wanted to know whether GIT can be used by my web Portal. > > my requirement is to save a file in 3 revision history from webpage > on ubuntu. I don't think I managed to fully parse this. Do you want to implement some sort of backing store for the files uploaded by the users of your web portal, so that for each file, several past revisions of its content can be kept along with its present content? Then the answer is yes; there are even wiki engines (gitit, ikiwiki) which use Git to store the sources of their pages, including "attachments" (uploaded files). On the other hand, to just store several revisions of a certain uploaded file (I'm really confused about that digit "3" near the word "revision" in your question--do you mean you want to keep at most three revisions?), using a full-blown SCM system might be like using a microscope to hit a nail. For such a case, I would probably go for using rdiff [1] to keep deltas of several past revisions of each file (in a database) and keeping the most recent version of each file on disk, readily available. Using rdiff-backup [2] (on a local file system) might also be an option. If you still think an SCM is a way to go, I'd probably look at Fossil [3] instead as it might be easier to deploy (just one executable file with two dependences: on libc and libz). Fossil uses SQLite for storage internally (so the whole repository is just a single SQLite v3 file) and does compress the blobs it stores. 1. http://linux.die.net/man/1/rdiff 2. http://www.nongnu.org/rdiff-backup/ 3. http://www.fossil-scm.org -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/git-users?hl=en.
