public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Enrico Weigelt <weigelt@metux.de>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] How to build a time machine on Gentoo
Date: Tue, 17 Aug 2010 21:34:27 +0200	[thread overview]
Message-ID: <20100817193426.GA6494@nibiru.local> (raw)
In-Reply-To: <AANLkTin9TnhGJTuB1hEDcF6oc78dgpHneQ_u+dtzw3DP@mail.gmail.com>

* Nganon <nganon+gentoo@gmail.com> 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
----------------------------------------------------------------------



  parent reply	other threads:[~2010-08-17 20:07 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-15 23:11 [gentoo-user] How to build a time machine on Gentoo Nganon
2010-08-16  0:15 ` Alex Schuster
2010-08-16 10:27   ` Nganon
2010-08-16  8:36 ` Marco
2010-08-16 10:30   ` Nganon
2010-08-16 21:37     ` Mick
2010-08-16 23:53       ` Thomas Yao
2010-08-17 11:34         ` Nganon
2010-08-17 11:29       ` Nganon
2010-08-17 12:14 ` Maximilian Bräutigam
2010-08-17 12:33   ` Alex Schuster
2010-08-18 11:04   ` Nganon
2010-08-18 11:34   ` Neil Bothwick
2010-08-18 11:53     ` Nganon
2010-08-18 14:53       ` Bill Longman
2010-08-18 18:03         ` Nganon
2010-08-18 18:37           ` Bill Longman
2010-08-18 18:49             ` Joerg Schilling
2010-08-18 19:04               ` Nganon
2010-08-18 19:28                 ` Joerg Schilling
2010-08-18 19:09               ` Bill Longman
2010-08-18 19:29               ` Alan McKinnon
2010-08-18 20:03                 ` Joerg Schilling
2010-08-19  9:30                 ` Joerg Schilling
2010-08-18 18:53             ` Nganon
2010-08-17 19:34 ` Enrico Weigelt [this message]
2010-08-18 11:09   ` Nganon
2010-08-18 11:59     ` William Kenworthy
2010-08-18 17:56       ` Nganon

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=20100817193426.GA6494@nibiru.local \
    --to=weigelt@metux.de \
    --cc=gentoo-user@lists.gentoo.org \
    /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