Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 May 2007 17:51:09 +0200
From:      Roland Smith <rsmith@xs4all.nl>
To:        Jeffrey Goldberg <jeffrey@goldmark.org>
Cc:        Jerry McAllister <jerrymc@msu.edu>, questions@freebsd.org
Subject:   Re: How to find disk slice layout
Message-ID:  <20070528155109.GA10386@slackbox.xs4all.nl>
In-Reply-To: <2C5ECA04-E6CD-48BC-B2DA-2B8153EB489D@goldmark.org>
References:  <4532A9C5-9AA1-42B6-BC29-1FCB98EBC054@goldmark.org> <20070528145326.GC24417@gizmo.acns.msu.edu> <2C5ECA04-E6CD-48BC-B2DA-2B8153EB489D@goldmark.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--n8g4imXOkfNTN/H1
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, May 28, 2007 at 10:38:41AM -0500, Jeffrey Goldberg wrote:
> > Note you do not back up the swap partition which is normally 'b'
> > and don't do anything to the 'c' partition which is there only to
> > describe the slice to the system and is not a true partition.
> > You can probably skip backing up your /tmp also.
>=20
>  What about /dev and /var?

I'd backup /var, because it's usually small. And it also contains
important things like your port options, and the database of installed
packages. =20

Don't bother with /dev though, because devices are dynamically created
when they become available.

>  I also feel that I should have put /usr/ports/distfiles on another file=
=20
>  system, since I don't particularly care to back up those either.  I gues=
s I=20
>  could just put in a symbolic link to something on /var

It depends on how you back up things, but both dump(8) BSD tar(1) can
obey the 'nodump' flag.

So if you do 'chflags nodump /usr/ports/distfiles', dump will skip that
directory (unless you're doing a level 0 dump, in which case you'll need
the '-h 0' option). BSD tar will skip files and directories flagged with
nodump if you give it the --nodump option.

Roland
--=20
R.F.Smith                                   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)

--n8g4imXOkfNTN/H1
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.3 (FreeBSD)

iD8DBQFGWvptEnfvsMMhpyURApPFAKCwgyZJFq2Yh5+Ce+tkjQjUufPPvACfVoiD
hSprJZje5JDDwZeYmQ4XP0w=
=Bqok
-----END PGP SIGNATURE-----

--n8g4imXOkfNTN/H1--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070528155109.GA10386>