public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: forgottenwizard <phrexianreaper@hushmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] what isn't required to boot a system/what can be trimmed from a backup
Date: Wed, 12 Mar 2008 22:48:09 -0500	[thread overview]
Message-ID: <20080313034809.GA3667@localhost> (raw)
In-Reply-To: <1205372890.14736.84.camel@orpheus>

On 11:18 Thu 13 Mar     , Iain Buchanan wrote:
> 
> On Tue, 2008-03-11 at 23:10 -0500, forgottenwizard wrote:
> 
> define "unneeded".  This is highly system dependant, as everyone puts
> important files all over the place.
> 
Things I would lose if I backed them up. Doing a prior backup, some
files in /proc caused me problems, and rsync refused to delete anything
in the following pass.
> 
> from the subject line I assume you want to be able to restore a bootable
> system?  If so, you may need to back up more than just filesystems.
> What about the partition table and the master boot record?  You can back
> up the mbr to a file by using dd:
>  $ sudo dd if=/dev/hda of=mbr.img bs=512 count=1
> (replace hda with your boot drive).
>
The table, mbr, and partition table I'm not worried about. Those can be
easily repaired (or replaced, depending on how one wants to do it)

> In terms of Gentoo, you can strip out /var/tmp /usr/portage /home and
> possibly /opt.  Probably some /var subdirs too like /var/log /var/www
> etc and some /usr subdirs like /usr/games /usr/include /usr/src etc.
> 
> I'd say you _need_ /dev /proc and /sys.
I'd like to know why. Some of the files in /proc change often, and cause
rsync a problem. sys doesn't cause these problems, though.
> 
> If you _really_ want to know for sure, turn on the atimes option in
> fstab for all your partions, then reboot and do a bit of stuff (log in,
> ssh, etc).  Then use `find` to find all files that were accessed.
> Something like this:
> 
>       * edit /etc/fstab, delete noatime (replacing it with "defaults" if
>         no other options remain)
>       * $ touch /var/tmp/reference
>       * $ shutdown -r now
>       * log in, look around
>       * find / -anewer /var/tmp/reference
> 
> The output from the last command will be everything you _need_ to boot.
> 
> Ideally, when backing up /proc /dev and /sys, do so from a cleanly
> shut-down system.
> 
> HTH,

I'm trying to do this with the system booted up, because doing a daily
sync like that would be a bit of a pain.

-- 
gentoo-user@lists.gentoo.org mailing list



  reply	other threads:[~2008-03-13  4:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-12  4:10 [gentoo-user] what isn't required to boot a system/what can be trimmed from a backup forgottenwizard
2008-03-12  4:29 ` Logan McKenna
2008-03-12  6:13   ` forgottenwizard
2008-03-13  8:43     ` "Mateusz A. Mierzwin'ski"
2008-03-13 17:20       ` forgottenwizard
2008-03-12  7:10 ` Dale
2008-03-13  1:48 ` Iain Buchanan
2008-03-13  3:48   ` forgottenwizard [this message]
2008-03-13  6:01     ` Iain Buchanan
2008-03-13  9:28     ` Neil Bothwick

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=20080313034809.GA3667@localhost \
    --to=phrexianreaper@hushmail.com \
    --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