From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RLQE4-0008G0-B2 for garchives@archives.gentoo.org; Wed, 02 Nov 2011 02:06:48 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7515C21C054; Wed, 2 Nov 2011 02:06:35 +0000 (UTC) Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com [209.85.214.53]) by pigeon.gentoo.org (Postfix) with ESMTP id CD91721C083 for ; Wed, 2 Nov 2011 02:06:12 +0000 (UTC) Received: by bkbzs8 with SMTP id zs8so5111158bkb.40 for ; Tue, 01 Nov 2011 19:06:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=bLMlMdl02C2Wk8FS6p23F7+ogOgTzgVttxRUtgRPxfM=; b=HPuhxcsgR2+f6GiuMFyhsiyuUqTmnGuctfjS7YHMnF24/RyZpevM8xOy7AuV5ioUre m1g/UsRoT+d/HzKLYtS/Fv8p1m5xjBKN4ITavzTwzxy06FygFIGyic4n1KtHb/7G5AOM OdkqOjLi1XzWGQYcCL3ha/wlVxCzI5sxDniuA= Received: by 10.204.13.132 with SMTP id c4mr1768173bka.23.1320199571933; Tue, 01 Nov 2011 19:06:11 -0700 (PDT) Received: from [10.0.0.3] ([46.242.118.64]) by mx.google.com with ESMTPS id r12sm751415bkw.5.2011.11.01.19.06.10 (version=SSLv3 cipher=OTHER); Tue, 01 Nov 2011 19:06:10 -0700 (PDT) Message-ID: <4EB0A593.9040007@gmail.com> Date: Wed, 02 Nov 2011 06:06:11 +0400 From: Dmitriy Petrov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-server@lists.gentoo.org Reply-to: gentoo-server@lists.gentoo.org MIME-Version: 1.0 To: gentoo-server@lists.gentoo.org Subject: Re: [gentoo-server] Git as backup tool References: <1320191424.2302.2.camel@Scythe> <20111102001935.GM11848@gmail.com> <1320194389.6317.1.camel@Scythe> In-Reply-To: <1320194389.6317.1.camel@Scythe> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: a8cb632c-3a3f-4ab6-8145-3b5bacbad2c3 X-Archives-Hash: 3bdf60cc58731f917fe5e23225a5becf Yeah. But `git log` is pretty good :) On 11/02/2011 04:39 AM, Tanner Danzey wrote: > On Tue, 2011-11-01 at 19:19 -0500, Brian Kroth wrote: > Not to mention finding a previous snapshot. > "deffee46b0ef8c504498a002443ab23019ee0cc9" isn't really a very good > indicator of when said backup was taken. :P >> Tanner Danzey 2011-11-01 18:50: >>> Generally, using git is a bad idea for backups (from what I've read) >>> >>> git stores it's data uncompressed and inefficiently. If you are backing >>> up things like configuration files or web pages that can change a lot, >>> sure, but for storing binary files with git, I'd recommend against it, >>> since binaries vary greatly from version to version (unlike text files) >>> and you'd just accumulate tons of useless binaries. programs like >>> duplicity and rsync are great for backups, though. >> Agreed. There are lots of other spin offs, each with their own pros and >> cons: rsnapshot, rdiff, etc. I personally use some homegrown perl, >> rsync, and zfs snapshots (transparent compression, dedup, each snapshot >> looks like a full backup, etc.). I'm sure you could use something like >> btrfs in that scheme as well. >> >> However, using git, hg, svn, whatever, for storing your config file >> repositories for something like cfengine, puppet, whatever is a good >> idea, but that's a different issue than backups. >> >>> in all, the drawbacks outweigh the benefits of using a code management >>> tool to back up entire systems... >>> >>> On Tue, 2011-11-01 at 23:16 +0200, Andrey Utkin wrote: >>>> Hi all! Long live the gentoo masters! >>>> I'd like to hear from anybody who uses (or tried) git on production >>>> servers for saving the points of possible restore. Please, share your >>>> practices, like commit patterns, .gitignore contents, etc. I've begun >>>> to use it a couple of days ago for that, and pointed out some issues. >>>> I control the whole root fs with git. >>>> The problematic part is bunch of files that update frequently, but i >>>> am not familiar with them and i'm not sure if system will load without >>>> them. >>>> Namely, these are files in /usr/lib64/portage/pym/ >>>> Also wtmp, utmp files hurt - likely without them box won't boot, but >>>> they shouldn't be in git control, too, coz they update often. >>>> Thus, backup restoring requires not git repo only, but also some tar of base? > >