git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Peter Baumann <waste.manager@gmx.de>
To: Russell <russellsteicke@gmail.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>, git@vger.kernel.org
Subject: Re: git as a backup tool?
Date: Tue, 15 May 2007 07:51:32 +0200	[thread overview]
Message-ID: <20070515055132.GC5493@xp.machine.xx> (raw)
In-Reply-To: <c1b8b6670705142209x267e44cbrea26aa8818275aea@mail.gmail.com>

On Tue, May 15, 2007 at 01:09:06PM +0800, Russell wrote:
>  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.
> 

There was already a discussion about using git for backup in [1], which
is probabily worth reading. For cleaning up old history Junio explained a
very elegant solution in [2].

-Peter


[1]: http://thread.gmane.org/gmane.comp.version-control.git/33887
[2]: http://article.gmane.org/gmane.comp.version-control.git/34455

      reply	other threads:[~2007-05-15  5:51 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
2007-05-15  5:51   ` Peter Baumann [this message]

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=20070515055132.GC5493@xp.machine.xx \
    --to=waste.manager@gmx.de \
    --cc=geert@linux-m68k.org \
    --cc=git@vger.kernel.org \
    --cc=russellsteicke@gmail.com \
    /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).