From owner-freebsd-questions@FreeBSD.ORG Thu Jun 7 22:31:47 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F28EA106566B for ; Thu, 7 Jun 2012 22:31:47 +0000 (UTC) (envelope-from bah@bananmonarki.se) Received: from feeder.usenet4all.se (1-1-1-38a.far.sth.bostream.se [82.182.32.53]) by mx1.freebsd.org (Postfix) with ESMTP id 6BA9D8FC1F for ; Thu, 7 Jun 2012 22:31:46 +0000 (UTC) Received: from kw.news4all.se (c80-217-70-175.bredband.comhem.se [80.217.70.175]) by feeder.usenet4all.se (8.13.1/8.13.1) with ESMTP id q57MUP5Q008485; Fri, 8 Jun 2012 00:30:27 +0200 (CEST) (envelope-from bah@bananmonarki.se) Message-ID: <4FD12B27.4030601@bananmonarki.se> Date: Fri, 08 Jun 2012 00:28:55 +0200 From: Bernt Hansson User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:10.0.3) Gecko/20120411 Thunderbird/10.0.3 MIME-Version: 1.0 To: freebsd@dreamchaser.org References: <4FD1098E.7020203@dreamchaser.org> In-Reply-To: <4FD1098E.7020203@dreamchaser.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Mailing List Subject: Re: dumping file system subtree (/var) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2012 22:31:48 -0000 2012-06-07 22:05, Gary Aitken skrev: > 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. > > 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? > > And would it be wise to repartition the SSD to put /var and /tmp on their own partitions? http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#NEW-HUGE-DISK