Amanda-Users

Re: excluding directories for amanda bare metal restores

2007-11-22 14:46:55
Subject: Re: excluding directories for amanda bare metal restores
From: Chris Hoogendyk <hoogendyk AT bio.umass DOT edu>
To: amanda-users AT amanda DOT org
Date: Thu, 22 Nov 2007 14:41:25 -0500


Geert Uytterhoeven wrote:
On Thu, 22 Nov 2007, Jon LaBadie wrote:
On Thu, Nov 22, 2007 at 02:10:35AM -0800, Gil Vidals wrote:
I'm aiming to use Amanda for bare metal restores as described in "Backup &
Recovery" by Curtis Preston - p. 145. However, I'm not sure which
directories to exclude. In fact, I'm not sure that I should exclude anything
at all. Should I exclude these?

/proc
/mnt
/dev
/tmp
/sys

With the possible exception of local usage of /mnt,
all of these are temporary or dynamic or pseudo
file systems or directory trees.  Don't back them up.

It depends. /dev may be real.


do a `df -k` and see.

I've done basically cold metal from tape a number of times on my Suns. So, I'm using ufsdump which may differ somewhat from what you are doing. However, in my case, I'm catching the partitions that are actually /dev/dsk/cxtxdxsx. So, for my backup server:

  mormyrid:/usr/local/etc/amanda:amanda$ df -k

  Filesystem            kbytes    used   avail capacity  Mounted on

  /dev/dsk/c0t0d0s3    10323838 1715777 8504823    17%    /
  /proc                      0       0       0     0%    /proc
  mnttab                     0       0       0     0%    /etc/mnttab
  fd                         0       0       0     0%    /dev/fd
  swap                 9028496      32 9028464     1%    /var/run
  swap                 9100560   72096 9028464     1%    /tmp
  /dev/dsk/c0t8d0s4    14452893 5405076 8903289    38%    /usr/local
/dev/dsk/c0t10d0s6 286313504 65553 283384816 1% /var/spool/amanda/disk2 /dev/dsk/c0t0d0s5 14452893 1129186 13179179 8% /var/spool/amanda/weekend /dev/dsk/c0t8d0s6 14452893 4896177 9412188 35% /var/spool/amanda/recover /dev/dsk/c0t9d0s6 286313504 65553 283384816 1% /var/spool/amanda/disk1
  df: cannot statvfs /usr/local/adm/backup/snapshots: Permission denied
  /dev/dsk/c0t0d0s7    14694829  416524 14131357     3%    /archive

  mormyrid:/usr/local/etc/amanda:amanda$

I basically only need "/" and "/usr/local".

The recovery of "/" captures all the mount points. Booting the system reconstructs the contents of all the other stuff. In my case, the /var/spool/amanda stuff is dynamic and doesn't need to be backed up or recovered. It's possible that I could lose stuff off my holding disk in a disaster, but that is stuff in the process of being backed up. So it makes no sense to think about backing up and recovering that. And my /archive is stuff that is getting pushed over to another server (all my amanda configurations, indexes, etc.)

Hope that helps. Now I have to go tend to my turkey. For those of you not in the U.S., please excuse us for dropping off the activity charts for a day or so. It's Thanksgiving. ;-)


---------------

Chris Hoogendyk

-
  O__  ---- Systems Administrator
 c/ /'_ --- Biology & Geology Departments
(*) \(*) -- 140 Morrill Science Center
~~~~~~~~~~ - University of Massachusetts, Amherst
<hoogendyk AT bio.umass DOT edu>

---------------
Erdös 4