From owner-freebsd-questions@FreeBSD.ORG Sun Jun 17 03:39:49 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CB1A81065680 for ; Sun, 17 Jun 2012 03:39:49 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from nightmare.dreamchaser.org (nightmare.dreamchaser.org [12.32.44.142]) by mx1.freebsd.org (Postfix) with ESMTP id 8D1C88FC14 for ; Sun, 17 Jun 2012 03:39:49 +0000 (UTC) Received: from breakaway.dreamchaser.org (breakaway.dreamchaser.org. [12.32.36.73]) by nightmare.dreamchaser.org (8.13.6/8.13.6) with ESMTP id q5H3dgQQ052390; Sat, 16 Jun 2012 21:39:43 -0600 (MDT) (envelope-from freebsd@dreamchaser.org) Message-ID: <4FDD517E.3060206@dreamchaser.org> Date: Sat, 16 Jun 2012 21:39:42 -0600 From: Gary Aitken User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:13.0) Gecko/20120609 Thunderbird/13.0 MIME-Version: 1.0 To: Wojciech Puchar References: <4FD1098E.7020203@dreamchaser.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (nightmare.dreamchaser.org [12.32.36.65]); Sat, 16 Jun 2012 21:39:43 -0600 (MDT) 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 Reply-To: freebsd@dreamchaser.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jun 2012 03:39:49 -0000 On 06/16/12 10:19, Wojciech Puchar 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. >> >> 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? >> > i really have no idea why you just don't dump it all? restore have -i option that allow you to partially restore files from a dump. > > I have SSD, single partition and i use dump to backup it to external hard disk. > > > alternatively - use tar. What I was trying to achieve, which I haven't done yet, was a smallish dump of the "core system". By that I mean system + ports, without distfiles, etc. Then a separate dump of user data, which is considerably larger. At this point I am thinking I should do this: make clean distclean ports to remove temporary stuff set /usr/home NODUMP dump /, /var, and /usr unset /usr/home NODUMP dump /usr/home