* Mirror plain directory under git
@ 2010-09-20 19:12 Tong Sun
2010-09-21 7:56 ` Enrico Weigelt
0 siblings, 1 reply; 5+ messages in thread
From: Tong Sun @ 2010-09-20 19:12 UTC (permalink / raw)
To: git
Hi,
How feasible it is to mirror a plain directory and put it under git
revision control (leaving the original intact)?
More or less like what etckeeper is doing to revision /etc directory.
I.e., I want to use git + some magic to replace rdiff-backup, so as
not only easily to restore, but also easy to track revision changes as
well.
It is just a wild dream?
Please CC me when replying.
Thanks
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Mirror plain directory under git
2010-09-20 19:12 Mirror plain directory under git Tong Sun
@ 2010-09-21 7:56 ` Enrico Weigelt
2010-09-24 14:36 ` Daniel Johnson
0 siblings, 1 reply; 5+ messages in thread
From: Enrico Weigelt @ 2010-09-21 7:56 UTC (permalink / raw)
To: git; +Cc: suntong
* Tong Sun <suntong@cpan.org> wrote:
Hi,
> How feasible it is to mirror a plain directory and put it under git
> revision control (leaving the original intact)?
Probably you'll want to have the .git dir outside of /etc, so
--git-dir and --work-dir are your friend (man 1 git).
An cron-script could look something like that:
#!/bin/bash
cd /var/my-etc-archive.git && \
git --work-dir=/etc add -A && \
git --work-dir=/etc commit -m "autocommit" && \
git push origin
(perhaps filter the output a bit, so you don't get unncessary
cron mails ;-))
cu
--
----------------------------------------------------------------------
Enrico Weigelt, metux IT service -- http://www.metux.de/
phone: +49 36207 519931 email: weigelt@metux.de
mobile: +49 151 27565287 icq: 210169427 skype: nekrad666
----------------------------------------------------------------------
Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
----------------------------------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Mirror plain directory under git
2010-09-21 7:56 ` Enrico Weigelt
@ 2010-09-24 14:36 ` Daniel Johnson
2010-09-24 15:24 ` Tong Sun
0 siblings, 1 reply; 5+ messages in thread
From: Daniel Johnson @ 2010-09-24 14:36 UTC (permalink / raw)
To: git, suntong
[-- Attachment #1: Type: Text/Plain, Size: 1250 bytes --]
I know nothing about the subject matter of your email, but the date appears to
be wrong on this email message, hiding it back further in the history than it
should be. Just a warning, as the last few emails you sent all seem to be like
this.
Some of the relevant mail headers from this mail:
>Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
> id S1752826Ab0IXMH3 (ORCPT <rfc822;thleetest9@gmail.com>
> + 99 others); Fri, 24 Sep 2010 08:07:29 -0400
>Received: from caprica.metux.de ([82.165.128.25]:38054 "EHLO
> mailgate.caprica.metux.de" rhost-flags-OK-OK-OK-FAIL)
> by vger.kernel.org with ESMTP id S1752237Ab0IXMH3 (ORCPT
> <rfc822;git@vger.kernel.org>); Fri, 24 Sep 2010 08:07:29 -0400
>Received: from mailgate.caprica.metux.de (localhost.localdomain [127.0.0.1])
> by mailgate.caprica.metux.de (8.14.4/8.14.4) with ESMTP id o8OBuZHp005578;
> Fri, 24 Sep 2010 14:08:05 +0200
>Received: (from uucp@localhost)
> by mailgate.caprica.metux.de (8.14.4/8.14.4/Submit) with UUCP id
> o8NKgxSa008244; Thu, 23 Sep 2010 22:42:59 +0200
>Received: (from weigelt@localhost)
> by nibiru.metux.de (8.12.10/8.12.10) id o8L7uL3d031552;
> Tue, 21 Sep 2010 09:56:21 +0200
>Date: Tue, 21 Sep 2010 09:56:21 +0200
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Mirror plain directory under git
2010-09-24 14:36 ` Daniel Johnson
@ 2010-09-24 15:24 ` Tong Sun
2010-09-24 20:20 ` Enrico Weigelt
0 siblings, 1 reply; 5+ messages in thread
From: Tong Sun @ 2010-09-24 15:24 UTC (permalink / raw)
To: Daniel Johnson; +Cc: git, Enrico Weigelt
First of all, thanks a lot Enrico for your answer. I was just about to
gave up, and start coding for rcs. Your answer is extremely helpful.
On Fri, Sep 24, 2010 at 10:36 AM, Daniel Johnson
<computerdruid@gmail.com> wrote:
> I know nothing about the subject matter of your email, but the date appears to
> be wrong on this email message, hiding it back further in the history than it
> should be. Just a warning, as the last few emails you sent all seem to be like
> this.
Ok, I took the liberty to look into the issue, and it seems that,
Enrico, it's your mailgate.caprica.metux.de mail gateway that is
causing the delay -- taking 3 days for your email to come out of it:
Received: by x1.dev; 24 Sep 2010 12:07:27 -0000
Received: by 16.mx.develooper.com (qpsmtpd/0.80); Fri, 24 Sep 2010
05:07:22 -0700
Received: by mailgate.caprica.metux.de (8.14.4/8.14.4); Fri, 24 Sep
2010 14:08:05 +0200
Received: (from uucp@localhost) by mailgate.caprica.metux.de
(8.14.4/8.14.4/Submit); Thu, 23 Sep 2010 22:42:59 +0200
Received: (from weigelt@localhost) by nibiru.metux.de
(8.12.10/8.12.10) id o8L7uL3d031552; Tue, 21 Sep 2010 09:56:21 +0200
Date: Tue, 21 Sep 2010 09:56:21 +0200
HTH
Tong
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Mirror plain directory under git
2010-09-24 15:24 ` Tong Sun
@ 2010-09-24 20:20 ` Enrico Weigelt
0 siblings, 0 replies; 5+ messages in thread
From: Enrico Weigelt @ 2010-09-24 20:20 UTC (permalink / raw)
To: git
* Tong Sun <suntong@cpan.org> wrote:
> Ok, I took the liberty to look into the issue, and it seems that,
> Enrico, it's your mailgate.caprica.metux.de mail gateway that is
> causing the delay -- taking 3 days for your email to come out of it:
Yep. I some trouble with my relay - quota was exceeded and so
all the mails were stuck in uucp spools instead of being relayed ;-o
cu
--
----------------------------------------------------------------------
Enrico Weigelt, metux IT service -- http://www.metux.de/
phone: +49 36207 519931 email: weigelt@metux.de
mobile: +49 151 27565287 icq: 210169427 skype: nekrad666
----------------------------------------------------------------------
Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
----------------------------------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-09-26 18:17 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-20 19:12 Mirror plain directory under git Tong Sun
2010-09-21 7:56 ` Enrico Weigelt
2010-09-24 14:36 ` Daniel Johnson
2010-09-24 15:24 ` Tong Sun
2010-09-24 20:20 ` Enrico Weigelt
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).