git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Russell <russellsteicke@gmail.com>
To: git@vger.kernel.org
Subject: Re: git as a backup tool?
Date: Tue, 15 May 2007 13:09:06 +0800	[thread overview]
Message-ID: <c1b8b6670705142209x267e44cbrea26aa8818275aea@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0705141334120.20215@anakin>

On 5/14/07, Geert Uytterhoeven <geert@linux-m68k.org> wrote:
>         Hi,
>
> Has anyone considered using git as a backup tool?  I.e.
>   - put your whole file system in git
>   - do `git add .; git commit -a' from cron
>   - copy .git to external media once in a while
>   - clean up old stuff (unused and older than xx days) from .git

I'm using git to backup my private email, all in Maildir format, in
that manner.  In addition, I push to a remote bare repository
automatically, using ssh host keys.

The most annoying issue was trying to prevent spam getting stuck in
the mail history.  I do this by having the "unsure" mail folder in a
different place, and then having a symlink from the mail store point
there so mutt can still find it easily if needed.

Backing up a whole home directory would require careful thought about
what _not_ to backup, similar to the spam issue.  You probably
wouldn't want to backup things that you download off the net and can
easily retrieve again, like foo-1.2.tar.gz etc.

I'm not sure what you mean by cleaning up old stuff.  git (or at least
my usage of it) requires the whole history to be in the repository.  I
haven't looked at shallow clones or other ways to prune history.



-- 
Virus found in this message.

  parent reply	other threads:[~2007-05-15  5:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-14 11:48 git as a backup tool? Geert Uytterhoeven
2007-05-14 22:53 ` Ron Parker
2007-05-15  5:09 ` Russell [this message]
2007-05-15  5:51   ` Peter Baumann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c1b8b6670705142209x267e44cbrea26aa8818275aea@mail.gmail.com \
    --to=russellsteicke@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).