git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Git as a backup system?

From
KKKonstantin Khomoutov <flatworm@users.sourceforge.net>
Date
Nov 8, 2010, 18:26 UTC
Message-ID
<20101108212612.bb4bfeb8.kostix@domain007.com>
In-Reply-To
<AANLkTikcBvN+5hkcc9+xt291B4Gm+Yhe53R3qY0PNt97@mail.gmail.com>

On Mon, 8 Nov 2010 13:01:29 -0500 Eric Frederich <eric.frederich@gmail.com> wrote:

Show 10 quoted lines
> I maintain a corporate MediaWiki installation.
> Currently I have a cron job that runs daily and tar's up the contents
> of the installation directory and runs a mysqldump.
> I keep backups of the past 45 days.
> Each backup is about 200M, so all in all I always have about 9.0G of
> backups. Most of the changes are in the database, so the mysqldump
> file is changed every day.
> Other than that, there can be new files uploaded but they never
> change, just get added.
> All configuration files stay the same.
[...]
Show 7 quoted lines
> Am I insane?  Are there other tools more suited toward this?
> I just thought of using Git since I looked at my 9G worth of data out
> there in my backup directory that is almost exactly the same and said
> "git could handle this well".
> 
> Are any of you using git for a backup system?  Have any tips, words
> of wisdom?

I suspect the rdiff-backup tool [1] was invented precisely for the setup like yours: it is able to sync one directory to another + create diffs between them thus providing for incremental backups.

1. http://www.nongnu.org/rdiff-backup/
Previous: Jonathan NiederNext: Dirk Süsserott
Message 3 of 6 in “Git as a backup system?”
  1. Eric FrederichNov 8, 2010
  2. Jonathan NiederNov 8, 2010
  3. Konstantin KhomoutovNov 8, 2010
  4. Dirk SüsserottNov 8, 2010
  5. Ævar Arnfjörð BjarmasonNov 8, 2010
  6. Patrick RouleauNov 9, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.