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 1RLO6r-0002aa-Us for garchives@archives.gentoo.org; Tue, 01 Nov 2011 23:51:14 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B086E21C03B; Tue, 1 Nov 2011 23:50:56 +0000 (UTC) Received: from mail-gx0-f181.google.com (mail-gx0-f181.google.com [209.85.161.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 6C16A21C034 for ; Tue, 1 Nov 2011 23:50:27 +0000 (UTC) Received: by ggnp2 with SMTP id p2so10259930ggn.40 for ; Tue, 01 Nov 2011 16:50:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:subject:from:to:date:in-reply-to:references:organization :content-type:x-mailer:content-transfer-encoding:mime-version; bh=NaeZdSh6g6iNM20y9O/5fBWTannnzWgrNiIE7Hna5GY=; b=Ihit7ZrBrZwcFSz/27aTxWfh4T4Of5/3XiLAom7kxLzuzlV+7hGMjoIXl4YH8SPLW6 P9HQQpQOoWjccBuUNboP2d2nwsbngbo0EmS30EV1rZDFtb7DocgGzAc7fcQzzeYHqG1+ jOzQMw7Il3fAcdawk8xvGRdLBAJKqfMD//0fc= Received: by 10.147.164.15 with SMTP id r15mr486498yao.24.1320191426956; Tue, 01 Nov 2011 16:50:26 -0700 (PDT) Received: from [192.168.0.22] (host-37-126-107-208.midco.net. [208.107.126.37]) by mx.google.com with ESMTPS id a31sm1644256ana.17.2011.11.01.16.50.25 (version=SSLv3 cipher=OTHER); Tue, 01 Nov 2011 16:50:25 -0700 (PDT) Message-ID: <1320191424.2302.2.camel@Scythe> Subject: Re: [gentoo-server] Git as backup tool From: Tanner Danzey To: gentoo-server@lists.gentoo.org Date: Tue, 01 Nov 2011 18:50:24 -0500 In-Reply-To: References: Organization: Outer Earth Interactive Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.0- Content-Transfer-Encoding: 7bit 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 X-Archives-Salt: 62d96f5e-b4da-4edb-9f31-238969a4e2dd X-Archives-Hash: 095401199d4cf043cf9aca0b5a0bb3b9 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. 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? >