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 1OlSRh-0001m8-6N for garchives@archives.gentoo.org; Tue, 17 Aug 2010 20:07:41 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C5DFBE0BDC for ; Tue, 17 Aug 2010 20:07:40 +0000 (UTC) Received: from mailgate.caprica.metux.de (caprica.metux.de [82.165.128.25]) by pigeon.gentoo.org (Postfix) with ESMTP id 46855E0830 for ; Tue, 17 Aug 2010 19:46:16 +0000 (UTC) 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 o7HJk1Fh022062 for ; Tue, 17 Aug 2010 21:46:01 +0200 Received: (from uucp@localhost) by mailgate.caprica.metux.de (8.14.4/8.14.4/Submit) with UUCP id o7HJjSoT022034 for gentoo-user@lists.gentoo.org; Tue, 17 Aug 2010 21:45:28 +0200 Received: (from weigelt@localhost) by nibiru.metux.de (8.12.10/8.12.10) id o7HJYREn029633 for gentoo-user@lists.gentoo.org; Tue, 17 Aug 2010 21:34:27 +0200 Date: Tue, 17 Aug 2010 21:34:27 +0200 From: Enrico Weigelt To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] How to build a time machine on Gentoo Message-ID: <20100817193426.GA6494@nibiru.local> References: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Terror: bin laden, kill bush, Briefbombe, Massenvernichtung, KZ, X-Nazi: Weisse Rasse, Hitlers Wiederauferstehung, 42, X-Antichrist: weg mit schaeuble, ausrotten, heiliger krieg, al quaida, X-Killer: 23, endloesung, Weltuntergang, X-Doof: wer das liest ist doof X-Archives-Salt: 72fbe692-e1db-4aca-8ad9-0d17ba595ff6 X-Archives-Hash: 105e495cee0d56c1c42af17af895ab9d * Nganon wrote: Hi, > My first post on the list. I thought I would start with something that I > started > to think of as 'essential' after losing 90GB of data. Now I have two main > questions in mind: what to and how to back up on gentoo most efficiently. I'm using a little script like that: #!/bin/bash cd /var/backup/blackwidow || exit 1 DATE=`date +%F-%H-%M-%S` rsync --exclude-from /scr/etc/backup-blackwidow.exclude \ -avz blackwidow:/ /var/backup/blackwidow/ROOT \ --backup \ "--backup-dir=/var/backup/blackwidow/BACKUP-$DATE" \ --delete \ --delete-excluded \ --delay-updates \ --progress \ (of course with a carefully maintained exclude file ;-p) This doesnt make a real rotating backup, but stores all files that get overwritten into their own directory (named by the current date). And from time to time, I'm cleaning up the backup volume and look for things that I still might need. For things I'd like to keep an history (eg. /etc) I'm using git, and pushing the repo to a remote server (denying non-fastfoward updates there, so an theorectical highjacker cannot destroy my history) For really long-term backups with bigger content (that might be too big for git), you could also give venti+vac (from plan9port) a try. I'm using it for storing larger media files (videos, etc) in my MediaCloud platform. > 1. Apart from users' home directories and the followings, what should be > backed > up on a gentoo machine? > /etc/portage/ > /root > /var/lib/portage > ...? Depends on how long the recovery may take. For example, if you can afford recompiling world (or have another compatible image somewhere else), you can exclude everything where packages are installed (bindirs, libdirs, /usr/share, etc, etc) - assuming everything's installed by portage. > Though I can find enough space on the external drives, I don't trust them > any more. See above..sigh..(No I recovered about one third of it with > testdisk/photorec > which names them as file000001 file00002.. and half them are zero sized.. > which > quite justifies my agony) Make multiple copies on different media (eg. different servers). 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 ----------------------------------------------------------------------