Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Jun 2012 17:16:34 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        Gary Aitken <freebsd@dreamchaser.org>
Cc:        FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: dumping file system subtree (/var)
Message-ID:  <alpine.BSF.2.00.1206071659230.56505@wonkity.com>
In-Reply-To: <4FD1098E.7020203@dreamchaser.org>
References:  <4FD1098E.7020203@dreamchaser.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 7 Jun 2012, Gary Aitken wrote:

> When I originally set up my SSD, the stuff I was following indicated 
> there was no need to put anythng on a separate filesystem.  I'm now 
> trying to build a backup system on a usb drive and I want a separate 
> /var and /tmp.
>
> I had originally set the nodump flag on /tmp and /var, so my snapshot 
> is empty for those.

There are several things in /var that are worth keeping, and they are 
pretty small.

> I don't think there's any reason to preserve /tmp, but is there any 
> good way to copy /var from the running system on the SSD to another 
> filesystem (and still preserve everything, including flags)?  My 
> impression is both mksnap_ffs and dump should only be used on a 
> complete filesystem, not a subtree.
>
> Or do I need to unset the nodump flag on /var, make a snapshot of /, 
> take a dump :-), and then split the /var out upon restore?

Snapshots don't have to be made separately, dump's -L option does that 
automatically:
http://www.wonkity.com/~wblock/docs/html/backup.html

Restoring from a dumpfile is an easy way.  net/rsync has a config option 
to support flags, but I haven't tried it.

> And would it be wise to repartition the SSD to put /var and /tmp on 
> their own partitions?

When I did that recently, I put /var on a small separate partition but 
used tmpfs(5) for /tmp.



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