How to find disk slice layout

Roland Smith rsmith at xs4all.nl
Mon May 28 15:51:12 UTC 2007


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.
> 
>  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.  

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 
>  system, since I don't particularly care to back up those either.  I guess I 
>  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
-- 
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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20070528/71aaf657/attachment.pgp


More information about the freebsd-questions mailing list